I need to remove a function from the parent theme and replace it within the child theme.
The function is called print_meta($meta_box). The function is not pluggable and it located in a random file, not the functions.php file.
The function adds options to a metabox that shows in a page or post. I need to add more options but to do this I re-write the function from within the child theme.
I don't think I can use remove_filter() as the function is not hooked.
I tried this: print_meta($meta_box)
function remove_parent_theme_functions( $meta_box ) {
remove_filter( 'init', 'print_meta' );
}
add_action( 'after_setup_theme', 'remove_parent_theme_functions' );
but I do not know what tag to use. I have tried all kinds.
Since the function is vital to setting up the metabox option, I assume that if I successfully removed the function when I use metabox I should get an error or the options should not appear.
So far I appear do matter what tag I use.
Is this even possible?