WC_Webhook::is_valid_topic()privateWC 3.6.0

Returns if topic is valid.

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.

WC_Webhook::is_valid_topic() code WC 8.7.0

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