debugging PHP plugin code
-
I’m developing my first plugin extension for Contact Form 7.
add_action( 'wpcf7_before_send_mail', 'wpcf7ev_verify_email_address' ); function wpcf7ev_verify_email_address( &$wpcf7_form ) { // save submitted form to the database // send email to the submitter with a verification link to click on //$submittersEmail = $wpcf7_form->posted_data["your-email"]; // prevent the form being sent as per usual $wpcf7_form->skip_mail = true; }
I’ve started getting an idea how to create it.. but how do I develop it without using something like alert() or console.log statements?
Typically I would want to print the contents of the object parameter as a debug statement so that I could then work out the code to retrieve, say, the email address.
Thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘debugging PHP plugin code’ is closed to new replies.