Add contact form

If you are self-hosted, you won’t have that button, as that is for WordPress sites hosted by wordpress.COM See The difference between WordPress.com, WordPress, and WordPress.org Search for plugins for self-hosted WordPress: http://wordpress.org/extend/plugins/search.php?q=contact+form&sort= http://wordpress.org/extend/plugins/contact-form-7/ is very popular.

How to get current user’s phone number

<?php // number 9 will be user ID $all_meta_for_user = get_user_meta( 9 ); print_r( $all_meta_for_user ); // find the key that you want Array ( [first_name] => Array ( [0] => Tom ) [last_name] => Array ( [0] => Auger) [nickname] => Array ( [0] => tomauger ) How to get current user’s phone number … Read more

other shortcodes in Contact form 7 MAILS [closed]

WPCF7 incorporates more filters than used in the answer you already found. Analogously to that, the wpcf7_posted_data filter should do what you are looking for: function wpse73667_wpcf7_posted_data( $posted_data ) { $posted_data = do_shortcode( $posted_data ); return $posted_data; } add_filter( ‘wpcf7_posted_data’, ‘wpse73667_wpcf7_posted_data’ ); Note that this is an educated guess and untested. You can find all … Read more

How to add a class for ninja form field_table?

There is a filter named ninja_forms_action_email_message that you could use to manipulate the email message body. I never tried, in the end I preferred to avoid using {fields_table} as a whole and manually created the HTML + styling in the form settings by specifying each single field manually.

After upgrading to PHP 7.0 my contact form outputs error

WordPress has a built in function for validating emails and I would advise you use that. So you can replace your preg_match with the wordpress is_email else if (!preg_match(“/^[A-Z0-9.%-]+@[A-Z0-9.%-]+.[A-Z]{2,4}$/”, trim($_POST[’email’]))) { $emailError=”You entered an invalid email address.”; $hasError = true; } REPLACED WITH else if ( ! is_email( trim( $_POST[’email’] ) ) ) { $emailError=”You … Read more