bp_core_template_activate
Filters the template to load for the Member activation page screen.
Description
Parameters (1)
- 0. $array (callback) =>
array( 'activate', 'registration/activate' )
- Path to the Member activation template to load.
Usage
- To run the hook, copy the example below.
- $array = apply_filters( 'bp_core_template_activate', $array );
- if ( !empty( $array ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the bp_core_template_activate callback
- function filter_bp_core_template_activate( $array ) {
- // make filter magic happen here...
- return $array;
- };
- // add the filter
- add_filter( 'bp_core_template_activate', 'filter_bp_core_template_activate', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'bp_core_template_activate', 'filter_bp_core_template_activate', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /bp-members/bp-members-screens.php
- bp_core_load_template( apply_filters( 'bp_core_template_activate', array( 'activate', 'registration/activate' ) ) );