WC_Webhook::get_topic_hooks
Get the associated hook names for a topic.
Method of the class: WC_Webhook{}
No Hooks.
Returns
Array.
Usage
// private - for code of main (parent) class only $result = $this->get_topic_hooks( $topic );
- $topic(string) (required)
- Topic name.
Changelog
| Since 2.2.0 | Introduced. |
WC_Webhook::get_topic_hooks() WC Webhook::get topic hooks code WC 10.9.4
private function get_topic_hooks( $topic ) {
$topic_hooks = self::get_default_topic_hooks( $this );
return isset( $topic_hooks[ $topic ] ) ? $topic_hooks[ $topic ] : array();
}