bp_core_template_plugin
The BuddyPress Cover Photo bp core template plugin hook.
Description
Parameters (1)
- 0. $members_single_plugins (string) =>
'members/single/plugins'
- The members single plugins.
Usage
- To run the hook, copy the example below.
- $members_single_plugins = apply_filters( 'bp_core_template_plugin', $members_single_plugins );
- if ( !empty( $members_single_plugins ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the bp_core_template_plugin callback
- function filter_bp_core_template_plugin( $members_single_plugins ) {
- // make filter magic happen here...
- return $members_single_plugins;
- };
- // add the filter
- add_filter( 'bp_core_template_plugin', 'filter_bp_core_template_plugin', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'bp_core_template_plugin', 'filter_bp_core_template_plugin', 10, 1 );
Defined (2)
The filter is defined in the following location(s).
- /profile-cover.php
- bp_core_load_template(apply_filters('bp_core_template_plugin', 'members/single/plugins'));
- bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );