check_is_user_spammed

check_is_user_spammed

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('check_is_user_spammed') is found 1 times:

  • /wp-includes/user.php line 533
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
         *
         * @param bool    $spammed Whether the user is considered a spammer.
         * @param WP_User $user    User to check against.
         */
        $spammed = apply_filters( 'check_is_user_spammed', is_user_spammy( $user ), $user );
     
        if ( $spammed ) {
            return new WP_Error( 'spammer_account', __( '<strong>Error:</strong> Your account has been marked as a spammer.' ) );
        }
    }
    return $user;