関数 wp_authenticate_spam_check()
2014/12/17
関数 wp_authenticate_spam_check()
定義ファイル :/blog/wp-includes/user.php 1
1 2 3 4 5 6 7 8 9 | function wp_authenticate_spam_check( $user ) { if ( $user && is_a( $user, 'WP_User' ) && is_multisite() ) { $spammed = apply_filters( 'check_is_user_spammed', is_user_spammy(), $user ); if ( $spammed ) return new WP_Error( 'spammer_account', __( '<strong>ERROR</strong>: Your account has been marked as a spammer.' ) ); } return $user; } |