Tag: wordpress
-
Gutenberg, Code, and Highlighting
in WordPressGutenberg now supports syntax highlighting in code blocks using the code-syntax-block plugin. Say goodbye to plain code rendering and embrace the beauty of highlighted syntax within Gutenberg blocks. Check out how Marcus Kazmierczak took code display to the next level!
-
Securing WordPress Plugins with more Plugins
in WordPressLearn how to secure plugins from accidental deactivation in WordPress by creating a helper function within an mu-plugin. This function ensures that critical plugins cannot be disabled, providing stability to your website. See how to implement this function and prevent the “Deactivate” option from appearing in the WordPress admin interface.
-
CSS & JS Concatenation in WordPress
in WordPressAutomated concatenation of Javascript and CSS files in WordPress can be enhanced using the `nginx-http-concat` plugin. Even though it was designed for nginx, it can be adapted to work with Apache servers. By utilizing specific code in `wp-config.php` and `mu-plugin`, improved caching and speed can be achieved. Consider turning this setup into a dedicated plugin…
-
Gutenberg and Markdown
in developmentUpdate: Jetpack now has its own built-in Markdown block: I’d highly recommend using it instead 🙂 Original post below: I’ve been playing around with Gutenberg a tiny bit recently and have realized that, at least in my case, it kind of eats the Jetpack Markdown module and doesn’t offer full markdown support. I honestly know nothing…
-
Disabling plugin deactivation in WordPress
The problem came up recently about how to make sure plugins activated in the WordPress plugin UI don’t get deactivated if they are necessary for a site to function. I thought that was an interesting thought puzzle worth spending 15 minutes on, so I came up with this function as a solution: Which can be…
-
Validating WordPress attachments with WP-CLI
in developmentI recently worked on migrating a site to a different server and for one reason or another, some of the images did not come over properly. While I could have just re-downloaded and re-imported all of the media, it would have taken quite a while since the media library was well over 100Gb. Instead, I…