make_spam_user
Fires after the user is marked as a SPAM user.
Description
Parameters (1)
- 0. $id (int)
- ID of the user marked as SPAM.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'make_spam_user', $id );
- The following example is for adding a hook callback.
- // define the make_spam_user callback
- function action_make_spam_user( $id ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'make_spam_user', 'action_make_spam_user', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'make_spam_user', 'action_make_spam_user', 10, 1 );
Defined (1)
The action is defined in the following location(s).
- /wp-admin/includes/ms.php
- do_action( 'make_spam_user', $id );