make_spam_user

make_spam_user

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

do_action('make_spam_user') is found 2 times:

  • /wp-includes/ms-deprecated.php line 726
     
    	if ( 'spam' === $pref ) {
    		if ( $value == 1 ) {
    			/** This filter is documented in wp-includes/user.php */
    			do_action( 'make_spam_user', $id );
    		} else {
    			/** This filter is documented in wp-includes/user.php */
    			do_action( 'make_ham_user', $id );
    		}
    	}
    
    
  • /wp-includes/user.php line 2532
    				 * @since 3.0.0
    				 *
    				 * @param int $user_id ID of the user marked as SPAM.
    				 */
    				do_action( 'make_spam_user', $user_id );
    			} else {
    				/**
    				 * Fires after the user is marked as a HAM user. Opposite of SPAM.
    				 *
    				 * @since 3.0.0
    				 *
    

See this hook used in plugins: