WordPress at Your Fingertips
function is not described

WC_Webhook::is_valid_topic() private WC 3.6.0

Returns if topic is valid.

{} It's a method of the class: WC_Webhook{}

No Hooks.

Return

true|false. True if validation passes.

Usage

// private - for code of main (parent) class only
$result = $this->is_valid_topic();

Changelog

Since 3.6.0 Introduced.

Code of WC_Webhook::is_valid_topic() WC 5.9.0

private function is_valid_topic() {
	return wc_is_webhook_valid_topic( $this->get_topic() );
}