Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Hack Contact Form 7 to avoid unwanted ajax calls
- add_action('wpcf7_enqueue_scripts', 'hack_cf7');
- function hack_cf7() {
- $_wpcf7 = array(
- 'loaderUrl' => wpcf7_ajax_loader(),
- 'sending' => __( 'Sending ...', 'contact-form-7' )
- );
- wp_localize_script( 'contact-form-7', '_wpcf7', $_wpcf7 );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement