ActionScheduler_wpPostStore::get_status()
Return an action's status, as stored in the post status column
Method of the class: ActionScheduler_wpPostStore{}
No Hooks.
Return
Mixed
.
Usage
$ActionScheduler_wpPostStore = new ActionScheduler_wpPostStore(); $ActionScheduler_wpPostStore->get_status( $action_id );
- $action_id(int) (required)
- Action ID.
ActionScheduler_wpPostStore::get_status() ActionScheduler wpPostStore::get status code WC 9.3.3
public function get_status( $action_id ) { $status = $this->get_post_column( $action_id, 'post_status' ); if ( null === $status ) { throw new InvalidArgumentException( __( 'Invalid action ID. No status found.', 'woocommerce' ) ); } return $this->get_action_status_by_post_status( $status ); }