groups_edit_forum_topic
Fires after a group forum topic has been edited.
Description
Parameters (1)
- 0. $topic_id (int)
- ID of the topic being edited.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'groups_edit_forum_topic', $topic_id );
- The following example is for adding a hook callback.
- // define the groups_edit_forum_topic callback
- function action_groups_edit_forum_topic( $topic_id ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'groups_edit_forum_topic', 'action_groups_edit_forum_topic', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'groups_edit_forum_topic', 'action_groups_edit_forum_topic', 10, 1 );
Defined (1)
The action is defined in the following location(s).
- /bp-groups/bp-groups-screens.php
- do_action( 'groups_edit_forum_topic', $topic_id );