Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to remove parent theme Action and Filter in wordpress child theme

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 543
    Comment on it

    Hello readers, today we discussed about How to remove parent theme Action and Filter in wordpress child theme.

    Some theme have its own hook function that change theme behavior and functionality. Some example are below, Right now I am not going to explain all these, we will cover them in another tutorial.

        pinboard_brandingopen()
        pinboard_blogtitle()
        pinboard_blogdescription()
        pinboard_brandingclose()
        pinboard_access()
    

    The below code is the way to deactivate the parent hook and filter.

    <?php
    
    function unhook_pinboard_functions() {
    
        remove_action( ' pinboard_blogdescription', ' pinboard-blogdescription', 5 );
    }
    add_action( 'init', 'unhook_pinboard_functions' );
    
    ?>
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: