The PHP foreach loop will help to iterate over an array or object. Please check the following foreach loop execution animation. PHP Foreach Syntax OR How it is working? It is moving through each array element in every iteration. The Read more…


Contact Form 7 email validation regex. We can check characters and domain names by regex. Please check the following code. How to block some domain names for email input? We can use wpcf7_validate_email filter to validate the email address. This Read more…


We can send “Ninja forms” submissions to multiple recipients by multiple email actions or BCC or CC option. 1. Multiple Email Actions We can add multiple recipients for ninja forms by adding multiple email actions. Select the Email & actions Read more…


We can fix the error “sender email address does not belong to the site domain.” by changing the email address. We need the same domain name for From input field on the Mail tab. Here website domain name is wpdebuglog.com Read more…


Input default value from URL We will get contact form 7 default input value by url. We will get URL data by `default:get option. Example Shortcode:- [text* your-name default:get] URL is http://example.com/contact/?your-name=Muhammed+Arshid How to add shortcode as default input values Read more…


Contact form 7 sends emails to multiple recipients. We can send emails to selectable or conditional email addresses by shortcode. We can send emails by Bcc (blind carbon copy) or Cc (carbon copy). We need to add contact form 7 Read more…


We can easily add contact form 7 additional headers like Bcc or Cc or Reply-To. Go to wp-admin > contact form 7 (CF7) > select form > mail. Then add data to the additional headers input field. Contact form 7 Read more…


We can use contact form 7 as the Contact Form upload file WordPress plugin. Install contact form 7 and CFDB7 plugin. Go to wp-admin > plugins > add new > search “contact form 7” and “CFDB7” install and activate it. Read more…


Contact Form 7 text field validation filter hooks details. We can modify the validation function by wpcf7_validate_text filter. The wpcs_custom_validation_filter hook will run during submission time. The $result is WPCF7_Validation object. It has invalidate method. The invalidate method will store Read more…


The wpcf7_mail_sent is a contact form 7 action hook. You can see more details on docs.wpdebuglog.com How to get submission data from the wpcf7_mail_sent hook? Add the following code in your theme functions.php or plugin file to get post data. Read more…