Thanks for the reply …I just need to clarify that will not executing 1200-1400 same lines again for just 10 lines of modification in this function affect the performance…or is there any other efficient way
or can we do something like this in child’s function.php
remove_action( ‘admin_menu’, ‘catchkathmandu_options_menu’ );
add_action( ‘admin_menu’, ‘catchkathmandu_child_options_menu’ );
function catchkathmandu_child_options_menu() {
add_theme_page(
__( ‘Theme Options’, ‘catchkathmandu’ ), // Name of page
__( ‘Theme Options’, ‘catchkathmandu’ ), // Label in menu
‘edit_theme_options’, // Capability required
‘theme_options’, // Menu slug, used to uniquely identify the page
‘catchkathmandu_child_theme_options_do_page’ // Function that renders the options page
);
function catchkathmandu_child_theme_options_do_page() {
}
Is this way correct ?
I am not sure whether removing the action stops it from executing the old function catchkathmandu_theme_options_do_page()