New answers tagged

1 vote

Have mu-plugin remove meta box ONLY if it isn't already removed in functions.php

function_exists won't work in an MU plugin because MU plugins are loaded before regular plugins, so the functions won't exist. The function_exists() check would need to be in the themes. But you're ...
user avatar
1 vote

Have mu-plugin remove meta box ONLY if it isn't already removed in functions.php

Hmm, a lazy workaround—as long as you're not running PHP < 5.3.0—might be to use a namespace in your mu-plugins file. Something like this might do the trick: <?php namespace Arglebargle; \...
user avatar
  • 10.4k
2 votes
Accepted

Changing custom type name hides the posts

I think what you're saying is that you're changing the name of the posttype (CPT) itself not the posts within that post type. If that IS the case then WordPress is performing exactly as it should. ...
user avatar
  • 5,322

Top 50 recent answers are included