Hi,
Didn’t explain further my idea when provided you that code.
The function sf_register_meta_boxes create an instance of the class RW_Meta_Box that receives the array $meta_boxes as parameter.
function sf_register_meta_boxes()
{
global $meta_boxes;
// Make sure there's no errors when the plugin is deactivated or during upgrade
if ( class_exists( 'RW_Meta_Box' ) )
{
foreach ( $meta_boxes as $meta_box )
{
new RW_Meta_Box( $meta_box );
}
}
}
My idea was to remove this functionality with the remove_action, and create a new function that will use a new array that you fill has desired.
So the idea is to create a new function passing has parameter a new array $new_meta_boxes that could be filled inside the functions.php or any other file you just need to include it in the functions.php
Those paths above won’t work in the child theme, if you need to use then in the child theme you have to use get_stylesheet_directory() instead of get_template_directory()
and use get_stylesheet_directory_uri() instead of get_template_directory_uri()
-Rui