bp_after_setup_theme

Add the BuddyPress functions file and the Theme Compat Default features.

Description

add_action( 'bp_after_setup_theme', (string) $bp_load_theme_functions, (int) $int ); 

Parameters (2)

0. $bp_load_theme_functions (string) => 'bp_load_theme_functions'
The bp load theme functions.
1. $int (int) => 1
The int.

Usage

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

Defined (3)

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

/bp-core/bp-core-actions.php  
  1. add_action( 'bp_after_setup_theme', 'bp_load_theme_functions', 1 ); 
  1. add_action( 'bp_after_setup_theme', 'bp_register_theme_compat_default_features', 10 ); 
/bp-core/bp-core-dependency.php  
  1. do_action( 'bp_after_setup_theme' );