remove_action gtm4wp_init ?
-
Hi,
Is it possible to disable WTM4WP in a particular case ?
I tried in a plugin :add_action( 'plugins_loaded', function() { if (my_special_case()) { remove_action( 'plugins_loaded', 'gtm4wp_init'); } }, 99 );
It doesn’t work.
I tried in my theme, wrapped in ‘init’ and in ‘wp’ add_action.
It doesn’t work.
Thank you for your help!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘remove_action gtm4wp_init ?’ is closed to new replies.