Conditional script/style loading
-
I was wondering if it was possible to only enqueue the wpgform JS and CSS on the pages that contain the forms.
I know with Contact form 7 you can add a hook like add_filter( ‘wpcf7_load_js’, ‘__return_false’ ); and then enqueue it when you want.
Does wpgform have a hook like this?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Conditional script/style loading’ is closed to new replies.