Filter for adding custom action to predefined hookpress action is not working
-
Hi Team,
I see the code in hookpress plugin as, they are providing a filter to add custom action to predefined action in hooks.php.
They are coding like this:
global $hookpress_actions;
$hookpress_actions = array(“bla-bla”);
$hookpress_actions = apply_filters( ‘hookpress_actions’, $hookpress_actions );I am adding my custom action like this.
add_filter(“hookpress_actions”,”my_webhooks”);function my_webhooks($hookpress_actions){
$hookpress_actions[] = “my_save_post”;
return $hookpress_actions;
}But looks like its not working. Anyone , please suggest.
Thanks,
Darik
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Filter for adding custom action to predefined hookpress action is not working’ is closed to new replies.