de

wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren




get_post_statuses [ WordPress Function ]

get_post_statuses ( Keine Parameter )
Gibt zurück:
  • (array) List of post statuses.
Definiert in:



Retrieve all of the WordPress supported post statuses.

Posts have a limited set of valid status values, this provides the post_status values and descriptions.

Source


<?php
function get_post_statuses( ) {
    
$status = array(
        
'draft'            => __('Draft'),
        
'pending'        => __('Pending Review'),
        
'private'        => __('Private'),
        
'publish'        => __('Published')
    );

    return 
$status;
}
?>

Beispiele [ wp-snippets.com ]

Top Google Suchergebnisse

Mehr ...

Nutzerduskussionen [ wordpress.org ]

0 Nutzerkommentare

Noch keine. Sei der Erste!

Neu hinzufügen ...



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