contact form 7 form not working in admin panel

The action wp_enqueue_scripts action hook is only on the frontend: try changing this to admin_enqueue_scripts for the admin (untested): add_action( ‘admin_enqueue_scripts’, ‘cf7_script_and_style’ ); Edit: After looking at the definition for wpcf7_enqueue_scripts(), it turns out that CF7 doesn’t anticipate being loaded in the admin: who would’ve guessed. You’ll need to copy a lot of that file … Read more

WordPress – Contact Form 7 – Get uploaded file issue

Try this function my_custom_form_submission( $contact_form ) { $submission = WPCF7_Submission::get_instance(); if ( $submission ) { $data = $submission->get_posted_data(); $email = isset( $data[‘your-email’] ) ? sanitize_email( $data[‘your-email’] ) : ”; $phone=”Nincs megadva”; $lastname = isset( $data[‘your-name’] ) ? sanitize_text_field( $data[‘your-name’] ) : ”; $firstname = isset( $data[‘text-532’] ) ? sanitize_text_field( $data[‘text-532’] ) : ”; $companyname = … Read more