Definition:
function wp_get_cookie_login() {}
Return values
returns:Always returns false
Source code
function wp_get_cookie_login() {
_deprecated_function( __FUNCTION__, '2.5' );
return false;
}
3697
Definition:
function wp_get_cookie_login() {}
returns:Always returns false
function wp_get_cookie_login() {
_deprecated_function( __FUNCTION__, '2.5' );
return false;
}
3697
Definition:
function wp_get_comment_status($comment_id) {}
returns:Status might be ‘trash’, ‘approved’, ‘unapproved’, ‘spam’. False on failure.
function wp_get_comment_status($comment_id) {
$comment = get_comment($comment_id);
if ( !$comment )
return false;
$approved = $comment->comment_approved;
if ( $approved == NULL )
return false;
elseif ( $approved == '1' )
return 'approved';
elseif ( $approved == '0' )
return 'unapproved';
elseif ( $approved == 'spam' )
return 'spam';
elseif ( $approved == 'trash' )
return 'trash';
else
return false;
}
3695
wp_get_current_commenter
Definition:
function wp_get_current_commenter() {}
Return values
returns:Comment author, email, url respectively.
Defined filters
apply_filters('wp_get_current_commenter', compact('comment_author', 'comment_author_email', 'comment_author_url')Source code
function wp_get_current_commenter() { // Cookies should already be sanitized. $comment_author = ''; if ( isset($_COOKIE['comment_author_'.COOKIEHASH]) ) $comment_author = $_COOKIE['comment_author_'.COOKIEHASH]; $comment_author_email = ''; if ( isset($_COOKIE['comment_author_email_'.COOKIEHASH]) ) $comment_author_email = $_COOKIE['comment_author_email_'.COOKIEHASH]; $comment_author_url = ''; if ( isset($_COOKIE['comment_author_url_'.COOKIEHASH]) ) $comment_author_url = $_COOKIE['comment_author_url_'.COOKIEHASH]; return apply_filters('wp_get_current_commenter', compact('comment_author', 'comment_author_email', 'comment_author_url')); }3699