display_post_states

Advertisement

Summery Summery

Filters the default post display states used in the posts list table.

Syntax Syntax

apply_filters( 'display_post_states', string[] $post_states, WP_Post $post )

Parameters Parameters

$post_states

(string[]) An array of post display states.

$post

(WP_Post) The current post object.

Source Source

File: wp-admin/includes/template.php

Advertisement

Changelog Changelog

Changelog
Version Description
3.6.0 Added the $post parameter.
2.8.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.