wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



wp_blacklist_check › WordPress Function

Depuis1.5.0
Dépréciée5.5.0
wp_blacklist_check ( $author, $email, $url, $comment, $user_ip, $user_agent )
Paramètres: (6)
  • (string) $author The author of the comment
    Requis: Oui
  • (string) $email The email of the comment
    Requis: Oui
  • (string) $url The url used in the comment
    Requis: Oui
  • (string) $comment The comment content
    Requis: Oui
  • (string) $user_ip The comment author's IP address
    Requis: Oui
  • (string) $user_agent The author's browser user agent
    Requis: Oui
Retourne:
  • (bool) True if comment contains disallowed content, false if comment does not
Défini(e) dans:
Codex:

Does comment contain disallowed characters or words.



Source

function wp_blacklist_check( $author, $email, $url, $comment, $user_ip, $user_agent ) {
	_deprecated_function( __FUNCTION__, '5.5.0', 'wp_check_comment_disallowed_list()' );

	return wp_check_comment_disallowed_list( $author, $email, $url, $comment, $user_ip, $user_agent );
}