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 ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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