Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • prajakta
    Member

    Thanks for the reply..just want to know whether removing the action stops it from executing the old function catchkathmandu_theme_options_do_page() …is there any plugin availbale to see hooks and the actions applied to them while executing…I tried Hook Sniffer but it’s crashing as its outdated.

    prajakta
    Member

    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()

    prajakta
    Member

    @sakin: Moving the file theme_options.php is working…[pls refer my question].I need to change this function
    inc/panel/theme_options.php -> catchkathmandu_theme_options_do_page() function as i am adding one theme option field here.

    I think catchkathmandu_theme_options_do_page() could be overwritten if function_exists was used.Can we do this in future versions ? or is there any way out

    I Just need to add a single field so Options Framework is expensive …can anybody help with the other way…i am new to wordpress

    prajakta
    Member

    Thanks for the reply…it’s working.

Viewing 4 posts - 1 through 4 (of 4 total)