ActionScheduler_wpPostStore::get_post()protectedWC 1.0

Get post.

Method of the class: ActionScheduler_wpPostStore{}

No Hooks.

Return

WP_Post|null.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_post( $action_id );
$action_id(string) (required)
- Action ID.

ActionScheduler_wpPostStore::get_post() code WC 8.7.0

protected function get_post( $action_id ) {
	if ( empty( $action_id ) ) {
		return null;
	}
	return get_post( $action_id );
}