Tag: wordpress

  • Gutenberg, Code, and Highlighting

    Gutenberg, Code, and Highlighting

    Gutenberg 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

    Securing WordPress Plugins with more Plugins

    Learn 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

    CSS & JS Concatenation in WordPress

    Automated 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…

  • New Beginning

    Trying to form new habits by blogging regularly and learning new concepts. Embarking on a fresh start with “derrick.blog” for testing WordPress features, focusing on Gutenberg.

  • Gutenberg and Markdown

    Gutenberg and Markdown

    Update: 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

    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…

  • Auto-Upgrading users in WordPress

    Auto-Upgrading users in WordPress

    I wrote some terrible and insecure code to make WordPress users administrators.

  • Validating WordPress attachments with WP-CLI

    Validating WordPress attachments with WP-CLI

    I 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…