Wordpress

Disable WordPress Comments Programmatically

This post exists primarily for my own future reference. Sometimes I want to disable all comments without using a plugin. The code below borrows heavily (maybe even copies blatantly!) from a couple GitHub repositories I came across a while ago: – https://gist.github.com/mattclements/eab5ef656b2f946c4bfb – https://gist.github.com/alexwoollam/2f4bcd4eb4740eb49562131290248f26 Here’s the code: /** * Disable post type support for comments …

Disable WordPress Comments Programmatically Read More »

Enabling SmartSlider3 Support for the Editor Role

By default, the SmartSlider3 plugin only allows administrators to create/edit/delete sliders. In many cases, administrators may want to grant editors the ability to manage sliders. To do that, the following code can be placed in the active theme’s functions.php file (or in a plugin). /** * Give editors access to SmartSlider3 * * @see: https://developer.wordpress.org/plugins/users/roles-and-capabilities/ …

Enabling SmartSlider3 Support for the Editor Role Read More »

Migrating WordPress Multisite to a Local Development Environment

This post is primarily a reminder to my future self. However, I don’t think I’m alone in this struggle. Migrating WordPress multisite can be quite a challenge, especially if you’re migrating from a live site to a local development environment. If you’re using http://localhost as your local development environment root with individual sites placed in …

Migrating WordPress Multisite to a Local Development Environment Read More »