How to include a mu-plugin as a theme dependency?
I'm going through a tutorial which says that creating new post_types
is best handled by creating a new mu-plugin (as opposed to adding it to the functions.php
). I understand why, but what I don't understand is how to include this mu-plugin as a dependency of my theme.
I want to be able to have my friend upload my theme and have it work right away, without having to tell them to copy the mu-plugin file into their WordPress mu-plugins folder.
Topic wp-dependencies mu-plugins theme-development Wordpress
Category Web