How to Exclude Files in Sub-Folders from WP Plugin Editor List?

I am not sure you can do that, however, you can turn off/on the editor for plugins or themes using the following in wp-config.php define(‘DISALLOW_FILE_EDIT’, true ); This will hide the editor in the WordPress admin section. Remember, this setting is controlled by the site administrator, and it is up to him/her to show/hide the … Read more

How to disable a plugin for certain page?

functions.php file is loaded after the plugins_loaded hook is fired. So you are (probably) removing the hook, but it’s already fired, so it doesn’t really matter. If you want to remove a hook, you need to know when the hook was added. Then you need to remove the action at a later time, but before … Read more

Custom Post Type + Categories

You should use not the categories, but two different custom taxonomies (it’s like custom categories, if you’re not familiar with with WordPress taxonomies). You can create two separate taxonomies via Custom Post Type UI plugin. screenshot And select to which of the post types, created taxonomy belongs. Also select that custom taxonomy is hierarchical, so … Read more