• 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

    https://www.ads-software.com/plugins/hookpress/

Viewing 1 replies (of 1 total)
  • Hi,

    I am also interested to know how we could pass certain WordPress fields to make them appear under the fields dropdown menu. I assume there should be a hook somewhere that we can utilize but couldn’t fine any info on this.

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.