WC_Webhook::is_valid_topic
Returns if topic is valid.
Method of the class: WC_Webhook{}
No Hooks.
Returns
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() WC Webhook::is valid topic code WC 10.5.0
private function is_valid_topic() {
return wc_is_webhook_valid_topic( $this->get_topic() );
}