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

An array of post display states.

$post

The current post object.

Source Source

File: wp-admin/includes/template.php

Advertisement

Changelog Changelog

Changelog
Version Description
5.5.0 Also applied in the Customizer context. If any admin functions are used within the filter, their existence should be checked with function_exists() before being used.
3.6.0 Added the $post parameter.
2.8.0 Introduced.

Advertisement

Leave a Reply