wc_is_order_status( string $maybe_status )

See if a string is an order status.


Description Description


Parameters Parameters

$maybe_status

(Required) Status, including any wc- prefix.


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: includes/wc-order-functions.php

function wc_is_order_status( $maybe_status ) {
	$order_statuses = wc_get_order_statuses();
	return isset( $order_statuses[ $maybe_status ] );
}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.