Removing the action that injects the script in the head
-
I have some situations where I need to disable this action added from this plugin:
add_action( 'wp_head', array( $this, 'inject_script' ), - 1000 );
I’m not quite sure how to use
remove_action
with this, as I’m not sure how to get the instance.remove_action( 'wp_head', array( 'Optimizely_X\Frontend', 'inject_script' ), - 1000 );
doesn’t seem to work. I think I need to be able to get the instance of$this
to use in theremove_action
function.Would anyone have any advice on how I can remove this action?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Removing the action that injects the script in the head’ is closed to new replies.