bp_<id>_includes
Fires at the end of the includes method inside BP_Component.
Description
do_action( 'bp_<id>_includes' );
This is a dynamic hook that is based on the component string ID.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'bp_{$id}_includes' );
- The following example is for adding a hook callback.
- // define the bp_<id>_includes callback
- function action_bp_id_includes( ) {
- // make action magic happen here...
- };
- // add the action
- add_action( "bp_{$id}_includes", 'action_bp_id_includes', 10, 0 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( "bp_{$id}_includes", 'action_bp_id_includes', 10, 0 );
Defined (1)
The action is defined in the following location(s).
- /bp-core/classes/class-bp-component.php
- do_action( 'bp_' . $this->id . '_includes' );