Remove the meta box from page edit screens Resolved Requested: 3 years and 10 months ago Hello, I want to hide post meta box of your plugin from pages edit site in backend. How?
OnPoint Plugins 3 years and 10 months ago Good Morning Jonas, This may be accomplished by adding the following filter your active theme’s functions.php <?php remove_action( 'do_meta_boxes', array( Advanced_Sidebar_Menu_Pro__Meta__Title::instance(), 'createMetaBox' ) ); Or from within a custom plugin like so: <?php add_action( 'do_meta_boxes', function() { remove_action( 'do_meta_boxes', array( Advanced_Sidebar_Menu_Pro__Meta__Title::instance(), 'createMetaBox' ) ); }, 0 ); Have a great weekend! Mat Lipe
bombelli 3 years and 2 months ago Hi Mat Since update to 8.0.2 I get the following error using the plugin call. Uncaught Error: Class ‘Advanced_Sidebar_Menu_Pro__Meta__Title’ not found Any idea? Thanks, Aldo
OnPoint Plugins 3 years and 2 months ago Hi Aldo, Some class names were changed in version 8 to match the namespace structure. Following the migration documentation, the new code is this: <?php remove_action( 'do_meta_boxes', [ Advanced_Sidebar_Menu\Meta\Title::instance(), 'register_meta_box' ] ); Have a great day!
Good Morning Jonas,
This may be accomplished by adding the following filter your active theme’s functions.php
Or from within a custom plugin like so:
Have a great weekend!
Mat Lipe
Hi Mat
Since update to 8.0.2 I get the following error using the plugin call.
Uncaught Error: Class ‘Advanced_Sidebar_Menu_Pro__Meta__Title’ not found
Any idea?
Thanks,
Aldo
Hi Aldo,
Some class names were changed in version 8 to match the namespace structure.
Following the migration documentation, the new code is this:
Have a great day!