membership_buddypress_pages

The Membership 2 membership buddypress pages hook.

Description

apply_filters( 'membership_buddypress_pages', (array) $array_bp_root_components ); 

Parameters (1)

0. $array_bp_root_components (array) => (array) $bp->root_components
The array bp root components.

Usage

To run the hook, copy the example below.
  1. $array_bp_root_components = apply_filters( 'membership_buddypress_pages', $array_bp_root_components ); 
  2.  
  3. if ( !empty( $array_bp_root_components ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the membership_buddypress_pages callback 
  2. function filter_membership_buddypress_pages( $array_bp_root_components ) { 
  3. // make filter magic happen here... 
  4. return $array_bp_root_components
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'membership_buddypress_pages', 'filter_membership_buddypress_pages', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'membership_buddypress_pages', 'filter_membership_buddypress_pages', 10, 1 ); 

Defined (1)

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

/app_old/membershipincludes/classes/membershippublic.php  
  1. $bppages = apply_filters('membership_buddypress_pages', (array) $bp->root_components );