Hooks are not executing

The do_action is in the wrong place. It is calling it’s self.

You have this:

   public function hook_name()
    {
     do_action('hook_name');
    }

Do this:

  do_action('hook_name');
  public function hook_name()
   {
   do_action('other_hook_name');
   }

Leave a Comment