wphooks.info - get_post_status

get_post_status

(trunk - 5.0-alpha-42993)

The hook occurs in the following file:

wp-includes/post.php:
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
	}

	/**
	 * Filters the post status.
	 *
	 * @since 4.4.0
	 *
	 * @param string  $post_status The post status.
	 * @param WP_Post $post        The post object.
	 */
	return apply_filters( 'get_post_status', $post->post_status, $post );
}

/**
 * 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.
 *
 * @since 2.5.0