wphooks.info - get_post_status

get_post_status

The hook occurs in the following file:

wp-includes/post.php:
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
	}

	/**
	 * 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