Definition:
function akismet_plugin_action_links( $links, $file ) {}
Parameters
- $links
- $file
Source code
function akismet_plugin_action_links( $links, $file ) {
if ( $file == plugin_basename( dirname(__FILE__).'/akismet.php' ) ) {
$links[] = '<a href="plugins.php?page=akismet-key-config">'.__('Settings').'</a>';
}
return $links;
}
9035

February 24, 2011 


akismet_get_user_comments_approved
Definition:
function akismet_get_user_comments_approved( $user_id, $comment_author_email, $comment_author, $comment_author_url ) {}
Parameters
Source code
function akismet_get_user_comments_approved( $user_id, $comment_author_email, $comment_author, $comment_author_url ) { global $wpdb; if ( !empty($user_id) ) return $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->comments WHERE user_id = %d AND comment_approved = 1", $user_id ) ); if ( !empty($comment_author_email) ) return $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->comments WHERE comment_author_email = %s AND comment_author = %s AND comment_author_url = %s AND comment_approved = 1", $comment_author_email, $comment_author, $comment_author_url ) ); return 0; }9025