wphooks.info - get_post_status

get_post_status

(trunk - 5.0-alpha-42490)

The hook occurs in the following file:

wp-includes/post.php:
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
	}

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