Advertisement
Guest User

Untitled

a guest
Sep 26th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. // Hack Contact Form 7 to avoid unwanted ajax calls
  2. add_action('wpcf7_enqueue_scripts', 'hack_cf7');
  3. function hack_cf7() {
  4. $_wpcf7 = array(
  5. 'loaderUrl' => wpcf7_ajax_loader(),
  6. 'sending' => __( 'Sending ...', 'contact-form-7' )
  7. );
  8. wp_localize_script( 'contact-form-7', '_wpcf7', $_wpcf7 );
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement