Switch language

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




get_comment_statuses [ WordPress Function ]

get_comment_statuses ( No parameters )
Returns:
  • (array) List of comment statuses.
Defined at:



Retrieve all of the WordPress supported comment statuses.

Comments have a limited set of valid status values, this provides the comment status values and descriptions.

Source


<?php
function get_comment_statuses( ) {
    
$status = array(
        
'hold'        => __('Unapproved'),
        
/* translators: comment status  */
        
'approve'    => _x('Approved''adjective'),
        
/* translators: comment status */
        
'spam'        => _x('Spam''adjective'),
    );

    return 
$status;
}
?>

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