Posted a reply to CF7 prints a “0” after ajax submit, on the site WordPress.org Forums: $('form.wpcf7-form').each(function() { var action = $(this).attr('action'); action = action.substring(action.indexOf('#')); $(this).attr('action', action); wpcf7.initForm($(this)); });