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.2

do_action('make_spam_user') is found 2 times:

  • /wp-includes/ms-deprecated.php line 726
    723
    724
    725
    726
    727
    728
    729
    730
    731
    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
    2528
    2529
    2530
    2531
    2532
    2533
    2534
    2535
    2536
    2537
    2538
         * @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: