an
groups-icon

Hooks do not work

Wait a minute... This content is very very old. We no longer sell or support this theme version. New Topics
  • Version 9
    David Brim
    0 points
    Beginner

    I just watched Mark Fail youtube video on filters https://www.youtube.com/watch?v=A9NawFvCsKE
    and even after following his instruction it seems that it does not work, what am I doing wrong?

    here is my code in my functions.php in my child theme.

    
    // found this hook on https://www.premiumpress.com/docs/
    // function hook_header($c){ return  apply_filters('hook_header', $c);  }	
    
    function ba_demo( $c ) {
    	
    	$ba_hello_world = "<h1>Hello world!</h1>";
    
    	$c = $ba_hello_world . $c;
    
    	return $c;
    }
    
    add_action( 'hook_header' , 'ba_demo' );
    // add_filter( 'hook_header' , 'ba_demo' );
    
    August 31, 2016 at 3:30 pm
  • fiona wylder
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    August 31, 2016 at 5:21 pm
  • David Brim
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    August 31, 2016 at 5:26 pm
  • fiona wylder
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    August 31, 2016 at 5:28 pm
  • David Brim
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    November 16, 2016 at 8:15 pm

530

Views

4

Replies