wc_is_webhook_valid_status( string $status )

Check if given status is a valid webhook status.


Description Description


Parameters Parameters

$status

(Required) Status to check.


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: includes/wc-webhook-functions.php

function wc_is_webhook_valid_status( $status ) {
	return in_array( $status, array_keys( wc_get_webhook_statuses() ), true );
}

Top ↑

Changelog Changelog

Changelog
Version Description
3.5.3 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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