bp_before_activity_type_tab_favorites
Fires before the listing of favorites activity type tab.
Description
do_action( 'bp_before_activity_type_tab_favorites' );
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'bp_before_activity_type_tab_favorites' );
- The following example is for adding a hook callback.
- // define the bp_before_activity_type_tab_favorites callback
- function action_bp_before_activity_type_tab_favorites( ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'bp_before_activity_type_tab_favorites', 'action_bp_before_activity_type_tab_favorites', 10, 0 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'bp_before_activity_type_tab_favorites', 'action_bp_before_activity_type_tab_favorites', 10, 0 );
Defined (2)
The action is defined in the following location(s).
- /bp-themes/bp-default/activity/index.php
- <?php do_action( 'bp_before_activity_type_tab_favorites' ); ?>
- /bp-templates/bp-legacy/buddypress/activity/index.php
- do_action( 'bp_before_activity_type_tab_favorites' ); ?>