Hi,
I am really confused because I want to create hook for my plugin that would block actions in pre stage of hooks.
For example I want to create Account::Create action in case of wrong package
How Can I do that? I am running many hook examples, trying to return different response.
If that is even possible? If yes what should I return or what should I register?
I am really confused because I want to create hook for my plugin that would block actions in pre stage of hooks.
For example I want to create Account::Create action in case of wrong package
How Can I do that? I am running many hook examples, trying to return different response.
If that is even possible? If yes what should I return or what should I register?
PHP:
'category' => 'Whostmgr',
'event' => 'Accounts::Create',
'stage' => 'pre',
'hook' => '/usr/local/cpanel/whostmgr/docroot/cgi/myplugin/hooks.php --create',
'exectype' => 'script',
'weight' => 999,
],