ActionScheduler_wpPostStore::get_status()publicWC 1.0

Return an action's status, as stored in the post status column

Метод класса: ActionScheduler_wpPostStore{}

Хуков нет.

Возвращает

Разное.

Использование

$ActionScheduler_wpPostStore = new ActionScheduler_wpPostStore();
$ActionScheduler_wpPostStore->get_status( $action_id );
$action_id(int) (обязательный)
Action ID.

Код ActionScheduler_wpPostStore::get_status() WC 8.7.0

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 );
}