wphooks.info - get_post_status

get_post_status

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-includes/post.php:
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
	}

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