template_notices

The BuddyPress template notices hook.

Description

do_action( 'template_notices' ); 

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'template_notices' ); 
The following example is for adding a hook callback.
  1. // define the template_notices callback 
  2. function action_template_notices( ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'template_notices', 'action_template_notices', 10, 0 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'template_notices', 'action_template_notices', 10, 0 ); 

Defined (27)

The action is defined in the following location(s).

/bp-themes/bp-default/registration/register.php  
  1. <?php do_action( 'template_notices' ); ?> 
  1. <?php do_action( 'template_notices' ); ?> 
  1. <?php do_action( 'template_notices' ); ?> 
/bp-themes/bp-default/registration/activate.php  
  1. <?php do_action( 'template_notices' ); ?> 
/bp-themes/bp-default/members/single/member-header.php  
  1. <?php do_action( 'template_notices' ); ?> 
/bp-themes/bp-default/members/single/activity/permalink.php  
  1. <?php do_action( 'template_notices' ); ?> 
/bp-themes/bp-default/index.php  
  1. <?php do_action( 'template_notices' ); ?> 
/bp-themes/bp-default/groups/single/group-header.php  
  1. do_action( 'template_notices' ); 
/bp-themes/bp-default/groups/index.php  
  1. <?php do_action( 'template_notices' ); ?> 
/bp-themes/bp-default/groups/create.php  
  1. <?php do_action( 'template_notices' ); ?> 
/bp-themes/bp-default/forums/index.php  
  1. <?php do_action( 'template_notices' ); ?> 
/bp-themes/bp-default/blogs/create.php  
  1. <?php do_action( 'template_notices' ); ?> 
/bp-themes/bp-default/activity/index.php  
  1. <?php do_action( 'template_notices' ); ?> 
/bp-templates/bp-legacy/buddypress/members/single/member-header.php  
  1. do_action( 'template_notices' ); ?> 
/bp-templates/bp-legacy/buddypress/members/single/cover-image-header.php  
  1. do_action( 'template_notices' ); ?> 
/bp-templates/bp-legacy/buddypress/members/register.php  
  1. do_action( 'template_notices' ); ?> 
  1. do_action( 'template_notices' ); ?> 
  1. do_action( 'template_notices' ); ?> 
/bp-templates/bp-legacy/buddypress/members/activate.php  
  1. do_action( 'template_notices' ); ?> 
/bp-templates/bp-legacy/buddypress/groups/single/group-header.php  
  1. do_action( 'template_notices' ); ?> 
/bp-templates/bp-legacy/buddypress/groups/single/cover-image-header.php  
  1. do_action( 'template_notices' ); ?> 
/bp-templates/bp-legacy/buddypress/groups/index.php  
  1. do_action( 'template_notices' ); ?> 
/bp-templates/bp-legacy/buddypress/groups/create.php  
  1. do_action( 'template_notices' ); ?> 
/bp-templates/bp-legacy/buddypress/forums/index.php  
  1. do_action( 'template_notices' ); ?> 
/bp-templates/bp-legacy/buddypress/blogs/create.php  
  1. do_action( 'template_notices' ); ?> 
/bp-templates/bp-legacy/buddypress/activity/single/home.php  
  1. do_action( 'template_notices' ); ?> 
/bp-templates/bp-legacy/buddypress/activity/index.php  
  1. do_action( 'template_notices' ); ?>