Hook to unload & load CSS & JS
-
Hi,
May I know the hook to unload & load CSS & JS for this plugin?
Thanks in advance.
Below is hook example from “Contact Form 7”:
(To unload/disable)
add_filter( 'wpcf7_load_js', '__return_false' ); add_filter( 'wpcf7_load_css', '__return_false' );
(To load)
<?php if ( function_exists( 'wpcf7_enqueue_scripts' ) ) { wpcf7_enqueue_scripts(); } if ( function_exists( 'wpcf7_enqueue_styles' ) ) { wpcf7_enqueue_styles(); } ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Hook to unload & load CSS & JS’ is closed to new replies.