Ryan Gil Posted April 3, 2019 Share Hello, I would know if it's possible to desactivate hook ? Quote Link to post
Foster Posted April 3, 2019 Share (edited) No, you can not. But there are other possibilities. Inside the apps, you can create an option to activate a hook or not or to include inside the hooks a status in relation with the app. If (defined('MY_APPS_CATALOG_TEST_STATUS) && MY_APPS_CATALOG_TEST_STATUS == 'True') { return false; } Or If (defined('MY_APPS_CATALOG_TEST_HOOK_STATUS) && MY_APPS_CATALOG_TEST_HOOK_STATUS == 'True') { return false; } I have not tested, but I think it's a way to manage a hook or not. the core has not a status function to manage the hook. Edited April 3, 2019 by Foster 1 Quote Link to post
Ryan Gil Posted April 4, 2019 Author Share @Foster, Thank you for the orientation. Quote Link to post
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.