Cannot fetch Contact form 7 data
-
add_action( 'wpcf7_before_send_mail', 'my_contact_form_7_handler' ); function my_contact_form_7_handler( $contact_form ) { $submission = WPCF7_Submission::get_instance(); if ( $submission ) { $form_data = $submission->get_posted_data(); $name = $form_data['your-name']; $email = $form_data['your-email']; $message = $form_data['your-message']; echo $name; } }
I use this hook to fetch data from cf7 to send it to an api. but data is not being fetched.I am not sure why.
here is my site info –
wp-core version: 6.0.2
site_language: en_US
user_language: en_US
timezone: +00:00
permalink: /%postname%/
https_status: true
multisite: false
user_registration: 0
blog_public: 1
default_comment_status: open
environment_type: production
user_count: 3
dotorg_communication: cURL error 28: Connection timed out after 10000 milliseconds wp-paths-sizes wordpress_path: /var/www/html/webcastletech.com
wordpress_size: 2.44 GB (2619091771 bytes)
uploads_path: /var/www/html/webcastletech.com/wp-content/uploads
uploads_size: 1.44 GB (1544139909 bytes)
themes_path: /var/www/html/webcastletech.com/wp-content/themes
themes_size: 80.23 MB (84126421 bytes)
plugins_path: /var/www/html/webcastletech.com/wp-content/plugins
plugins_size: 129.06 MB (135330128 bytes)
database_size: 53.61 MB (56213504 bytes)
total_size: 4.13 GB (4438901733 bytes) wp-dropins (1) advanced-cache.php: true wp-active-theme name: (webcastle)
version: undefined
author: Anonymous
author_website: (undefined)
parent_theme: none
theme_features: core-block-patterns, widgets-block-editor, menus
theme_path: /var/www/html/webcastletech.com/wp-content/themes/webcastle
auto_update: Disabled wp-themes-inactive (3) B6D7WC15: version: 1.0.2, author: WordPress.com, Auto-updates disabled
Twenty Twenty-One: version: 1.4, author: the WordPress team (latest version: 1.7), Auto-updates disabled
Twenty Twenty-Two: version: 1.2, author: the WordPress team (latest version: 1.3), Auto-updates disabled wp-plugins-active (27) Advanced Custom Fields: version: 5.12.3, author: Delicious Brains (latest version: 6.0.7), Auto-updates disabled
Advanced Custom Fields: Repeater Field: version: 2.1.0, author: Elliot Condon, Auto-updates disabled
Advanced Editor Tools (previously TinyMCE Advanced): version: 5.6.0, author: Automattic, Auto-updates disabled
Akismet Anti-Spam: version: 5.0, author: Automattic (latest version: 5.0.2), Auto-updates disabled
Catch Infinite Scroll: version: 2.0.3, author: Catch Plugins (latest version: 2.0.4), Auto-updates disabled
Category Order and Taxonomy Terms Order: version: 1.7.1, author: Nsp-Code (latest version: 1.7.4), Auto-updates disabled
CF7 to Webhook: version: 2.2.5, author: Mário Valney, Vizir Software Studio, Auto-updates disabled
Classic Editor: version: 1.6.2, author: WordPress Contributors, Auto-updates disabled
Colorlib 404 Customizer: version: 1.0.96, author: Colorlib, Auto-updates disabled
Contact Form 7: version: 5.6.3, author: Takayuki Miyoshi (latest version: 5.7.3), Auto-updates disabled
Contact Form 7 - Dynamic Text Extension: version: 2.0.3, author: Chris Mavricos, SevenSpark (latest version: 3.1.3), Auto-updates disabled
Contact Form 7 Redirections Integrations and Database: version: 2.0.0, author: 1-ClickSetup, Auto-updates disabled
Contact Form CFDB7: version: 1.2.6.4, author: Arshid (latest version: 1.2.6.5), Auto-updates disabled
Custom Post Type UI: version: 1.13.1, author: WebDevStudios (latest version: 1.13.4), Auto-updates disabled
Debug Info: version: 1.3.10, author: AMP-MODE, Auto-updates disabled
Duplicate Page: version: 4.4.9, author: mndpsingh287 (latest version: 4.5.1), Auto-updates disabled
File Upload Types: version: 1.2.2, author: WPForms, Auto-updates disabled
OptionTree: version: 2.7.3, author: Derek Herman, Auto-updates disabled
Post Types Order: version: 1.9.9.1, author: Nsp Code (latest version: 1.9.9.2), Auto-updates disabled
Rank Math SEO: version: 1.0.97, author: Rank Math (latest version: 1.0.108), Auto-updates disabled
Smush: version: 3.12.4, author: WPMU DEV, Auto-updates disabled
UpdraftPlus - Backup/Restore: version: 1.22.21, author: UpdraftPlus.Com, DavidAnderson (latest version: 1.22.24), Auto-updates disabled
Wordfence Security: version: 7.8.2, author: Wordfence (latest version: 7.9.0), Auto-updates disabled
WP File Manager: version: 7.1.7, author: mndpsingh287 (latest version: 7.1.8), Auto-updates disabled
WP Mail SMTP: version: 3.5.2, author: WPForms (latest version: 3.7.0), Auto-updates disabled
WP Rocket: version: 3.10.5.1, author: WP Media (latest version: 3.12.5.3), Auto-updates disabled
WP Webhooks: version: 3.3.1, author: Ironikus, Auto-updates disabled wp-plugins-inactive (5) Hello Dolly: version: 1.7.2, author: Matt Mullenweg, Auto-updates disabled
UBH CSU: version: 1.0, author: Prappo Prince, Auto-updates disabled
WordPress CMS Module: version: 5.3.0, author: WordPress CMS, Auto-updates disabled
WordPress data optimizer: version: 7.2, author: WordPress, Auto-updates disabled
YITH Infinite Scrolling: version: 1.7.0, author: YITH (latest version: 1.8.0), Auto-updates disabled wp-media image_editor: WP_Image_Editor_Imagick
imagick_module_version: 1690
imagemagick_version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
imagick_version: 3.4.4
file_uploads: File uploads is turned off
post_max_size: 200M
upload_max_filesize: 50M
max_effective_size: 50 MB
max_file_uploads: 200
imagick_limits:
imagick::RESOURCETYPE_AREA: 122 MB
imagick::RESOURCETYPE_DISK: 1073741824
imagick::RESOURCETYPE_FILE: 6144
imagick::RESOURCETYPE_MAP: 512 MB
imagick::RESOURCETYPE_MEMORY: 256 MB
imagick::RESOURCETYPE_THREAD: 1
imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, ART, ARW, AVI, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DNG, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, FAX, FILE, FITS, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, H, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, JBG, JBIG, JNG, JNX, JPE, JPEG, JPG, JPS, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBP, WMV, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV
gd_version: 2.2.5
gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
ghostscript_version: 9.50 wp-server server_architecture: Linux 5.4.0-137-generic x86_64
httpd_software: Apache/2.4.41 (Ubuntu)
php_version: 7.4.3-4ubuntu2.17 64bit
php_sapi: apache2handler
max_input_variables: 1000
time_limit: 300
memory_limit: 1280M
max_input_time: 600
upload_max_filesize: 50M
php_post_max_size: 200M
curl_version: 7.68.0 OpenSSL/1.1.1f
suhosin: false
imagick_availability: true
pretty_permalinks: true
htaccess_extra_rules: true wp-database extension: mysqli
server_version: 8.0.32-0ubuntu0.20.04.2
client_version: mysqlnd 7.4.3-4ubuntu2.17
max_allowed_packet: 67108864
max_connections: 151 wp-constants WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /var/www/html/webcastletech.com/wp-content
WP_PLUGIN_DIR: /var/www/html/webcastletech.com/wp-content/plugins
WP_MEMORY_LIMIT: 40M
WP_MAX_MEMORY_LIMIT: 1280M
WP_DEBUG: false
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: false
SCRIPT_DEBUG: false
WP_CACHE: true
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: Undefined
DB_CHARSET: utf8mb4
DB_COLLATE: undefined wp-filesystem wordpress: not writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable wp_mail_smtp version: 3.5.2
license_key_type: lite
debug: No debug notices found.
lite_install_date: Jan 8, 2021 @ 4:15am
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Cannot fetch Contact form 7 data’ is closed to new replies.