Answer the question
In order to leave comments, you need to log in
wp_deregister_script not working, why?
Good afternoon!
Please tell me why wp_deregister_script does not work in this example.
Find the name of the included library in the plugin file
wp_enqueue_script( 'pointer_script', plugins_url( '/media/js/pointer.js', __FILE__ ), array( 'jQuery') );
add_action( 'wp_enqueue_scripts', 'my_deregister_javascript');
function my_deregister_javascript() {
wp_deregister_script( 'pointer_script' );
wp_deregister_script( 'dsq_count_script' );
}
Answer the question
In order to leave comments, you need to log in
So most likely the pointer_script script call does not hang on the wp_enqueue_scripts hook. Look in the plugin file for which hook the connection is implemented in.
Because the discus plugin is extremely handwritten
https://github.com/disqus/disqus-wordpress/blob/ma...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question