Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




comment_exists [ WordPress Function ]

comment_exists ( $comment_author, $comment_date )
Parameters:
Uses:
  • $wpdb
Returns:
  • (mixed) Comment ID on success.
Defined at:



{@internal Missing Short Description}}

Source


<?php
function comment_exists($comment_author$comment_date) {
    global 
$wpdb;

    
$comment_author stripslashes($comment_author);
    
$comment_date stripslashes($comment_date);

    return 
$wpdb->get_var$wpdb->prepare("SELECT comment_post_ID FROM $wpdb->comments
            WHERE comment_author = %s AND comment_date = %s"
$comment_author$comment_date) );
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics