ActionScheduler_wpPostStore::get_post
Get post.
Method of the class: ActionScheduler_wpPostStore{}
No Hooks.
Returns
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() ActionScheduler wpPostStore::get post code WC 10.8.1
protected function get_post( $action_id ) {
if ( empty( $action_id ) ) {
return null;
}
return get_post( $action_id );
}