/** * Change the error text message that appears. * * @link https://wpforms.com/developers/how-to-change-the-error-text-for-failed-submissions/ */ function wpf_translated($translated_text, $text, $domain) { // Bail early if it’s not a WPForms string. if ($domain !== ‘wpforms-lite’) { return $translated_text; } // Compare against the…Continue reading
/** * Remove Specific Fields from Notifications * * @link https://wpforms.com/developers/how-to-remove-specific-fields-from-notifications */ add_action(‘wpforms_loaded’, function() { add_filter(‘wpforms_entry_email_data’, function ($fields, $entry, $form_data) { // Bail early if form ID is not equal to 1000 if ((int)$form_data[‘id’] !== 1000) { return $fields; }…Continue reading
/** * Remove Specific Fields from Notifications * * @link https://wpforms.com/developers/how-to-remove-specific-fields-from-notifications */ add_action(‘wpforms_loaded’, function() { add_filter(‘wpforms_entry_email_data’, function ($fields, $entry, $form_data) { // Bail early if form ID is not equal to 1000 if ((int)$form_data[‘id’] !== 1000) { return $fields; }…Continue reading
/** * Empty dropdown item without the price showing for payment dropdown selection. * * @link https://wpforms.com/developers/how-to-add-an-empty-dropdown-to-dropdown-items/ */ function wpf_dev_empty_dropdown_item() { ?>Continue reading
/** * Link your form logo on conversational forms. * * @link https://wpforms.com/developers/how-to-link-your-conversational-form-logo */ function wpf_dev_conversational_form_add_link() { ?>Continue reading
.wpforms-form button[type=submit] { background-color: #024488 !important; border-color: #024488 !important; color: #fff !important; transition: background 0.3s ease-in-out; } .wpforms-form button[type=submit]:hover { background-color: #022B57 !important; }Continue reading
/* Center the form container */ .wpforms-container.wpf-center { margin: 0 auto !important; max-width: 500px !important; width: 500px !important; } /* Center submit button and make it full width */ .wpf-center .wpforms-submit-container { display: inline-block; text-align: center; width: 100% !important; }…Continue reading
.wpforms-container.wpf-center { margin: 0 auto !important; /* Adjust the width in the next 2 lines as your site needs */ max-width: 500px !important; width: 500px !important; } /* Readjust the form width for smaller devices */ @media only screen and…Continue reading
/** * How to Increase Image Size in Notification Emails * * @link https://wpforms.com/developers/how-to-increase-image-size-in-notification-emails */ function wpf_custom_wpforms_email_notification_message_thumbnail($message) { // Define the new width and height $new_width = ‘auto’; $new_height = 200; // Use preg_replace to modify the width and height…Continue reading
add_filter(‘charitable_validate_donation_form_submission_email_check’, ‘charitable_test_for_email’, 10, 2 ); function charitable_test_for_email( $valid, $submitted ) { $email = $submitted->get_submitted_value( ’email’ ); // Add your logic here to see if the email is valid or not. // Return false if not valid, otherwise let the validation…Continue reading