disable or deregister css and js
-
hello
i write in the function.phpadd_action( 'wp_enqueue_scripts', 'load_style' ); function load_style() { wp_dequeue_style('mailpoet_public'); wp_deregister_style('mailpoet_public'); } add_action( 'wp_enqueue_scripts', 'load_scripts' ); function load_scripts() { wp_deregister_script( 'mailpoet_public' ); }but css and js are not disable (deregister).
wtfwhy?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘disable or deregister css and js’ is closed to new replies.