Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

get_post_stati()

3 tags 1 category

get_post_stati() — Gets a list of post statuses.

Inputs: $args (array|string): Optional. Array or string of post status arguments to compare against properties of the global $wp_post_statuses objects. Default empty array. $output (string): Optional. The type of output to return, either ‘names’ or ‘objects’. Default ‘names’. $operator (string): Optional. The logical operation to perform. ‘or’ means only one element from the array needs to match; ‘and’ means all elements must match. Default ‘and’.

Returns string[]|stdClass[]: A list of post status names or objects.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…