bp_after_setup_theme

Fire the 'bp_after_setup_theme' action.

Description

bp_after_setup_theme(); 

Piggy-back action for BuddyPress-specific theme actions once the theme has been set up and the theme's functions.php has loaded.

Hooked to after_setup_theme with a priority of 100. This allows plenty of time for other themes to load their features, such as BuddyPress support, before our theme compatibility layer kicks in.


Usage

  1. if ( !function_exists( 'bp_after_setup_theme' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/bp-core-dependency.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_after_setup_theme(); 
  7.  

Defined (1)

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

/bp-core/bp-core-dependency.php  
  1. function bp_after_setup_theme() { 
  2.  
  3. /** 
  4. * Fires inside the 'bp_after_setup_theme' function. 
  5. * @since 1.7.0 
  6. */