bp_groups_admin_edit
Fires before the display of the edit form.
Description
Useful for plugins to modify the group before display.
Parameters (1)
- 0. $array (array) =>
array( &$group )
- Instance of the current group being edited. Passed by reference.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'bp_groups_admin_edit', $array );
- The following example is for adding a hook callback.
- // define the bp_groups_admin_edit callback
- function action_bp_groups_admin_edit( $array ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'bp_groups_admin_edit', 'action_bp_groups_admin_edit', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'bp_groups_admin_edit', 'action_bp_groups_admin_edit', 10, 1 );
Defined (1)
The action is defined in the following location(s).
- /bp-groups/bp-groups-admin.php
- do_action_ref_array( 'bp_groups_admin_edit', array( &$group ) ); ?>