Filter hook 'get_post_status'

in WP Core File wp-includes/post.php at line 1283

Description

Filters the post status.

Occurrences

Filename Line Number
wp-includes/post.php 1283

Parameters

Type Name Description
string $post_status The post status.
WP_Post $post The post object.

PHP Doc

/**
	 * Filters the post status.
	 *
	 * @since 4.4.0
	 * @since 5.7.0 The attachment post type is now passed through this filter.
	 *
	 * @param string  $post_status The post status.
	 * @param WP_Post $post        The post object.
	 */