Contact form 7 shortcode appear outside form tag

It’s because your shortcode echoes the output than returning it — shortcodes should not echo the output, but return it — unless in certain cases like complex HTML markup in the output, where you need to use output buffering. So your code should look like: function cf7_shortcode() { return ‘<span>test shortcode</span>’; } add_shortcode( ‘cf7_shortcode’, ‘cf7_shortcode’ … Read more

Contact form 7 Hide response messages after 5 seconds

you can use below code to hide message // Contact Form 7 submit event fire document.addEventListener(‘wpcf7submit’, function(event) { setTimeout(function() { jQuery(‘form.wpcf7-form’).removeClass(‘sent’); jQuery(‘form.wpcf7-form’).removeClass(‘failed’); jQuery(‘form.wpcf7-form’).addClass(‘init’); }, 1000); }, false);

Delete user after Contact Form 7 submission [closed]

You’re doing it wrong. get_currentuserinfo() returns the data into some preset global variables. Try this: function outta_here() { global $user_ID; get_currentuserinfo(); wp_delete_user($user_ID); } add_action( ‘wpcf7_before_send_mail’, ‘outta_here’ ); You can read more about get_currentuserinfo() on WP Codex.

Contact Form 7 pre email processing [closed]

Contact form 7 changed classes in 3.9 version. Now this is how it goes. add_action( ‘wpcf7_before_send_mail’, ‘process_form’ ); function process_form( $cf7 ) { $submission = WPCF7_Submission::get_instance(); if ( $submission ) { $posted_data = $submission->get_posted_data(); } if( $cf7->id() == 20 ) { $wpdb->insert(‘newsletter_signups’, array( ‘name’ => $posted_data[‘name’], ’email’ => $posted_data[’email’] ) ); } } Read more … Read more

Custom theme, contact form 7 & fast secure form doesn’t work

I found the solution myself, It had something to do with my code echoing out $content = $page->post_content … echo $content;… I changed this to $content = apply_filters(‘the_content’, $page->post_content); … echo $content;… And now it works! Ref: https://stackoverflow.com/questions/6405974/using-get-pages-in-wordpress-is-stripping-out-my-p-tags

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)