register_post_type
function should be executed every time a WP request is made. Default post types don’t have this requirement. You can use your code as is, in MU plugin. Just create a .PHP
file with this code, and place it in mu-plugins
sub-folder of wp-content
. You don’t need to provide any standard plugin headers.