Change Validation Messages for WPML

/** * Customize strings for WPForms form validation * * @link https://wpforms.com/developers/change-validation-messages-for-wpml/ */ function wpforms_dev_frontend_strings( $strings ) { $currentLanguage = defined( ‘ICL_LANGUAGE_CODE’ ) ? ICL_LANGUAGE_CODE : null; switch ( $currentLanguage ) { // For French translation case ‘fr’: // Required…Continue reading

Troubleshooting Action Scheduler – Storage

/* Change the completed scheduled tasks storage to 1 week Original doc link: https://wpforms.com/docs/how-to-troubleshoot-action-scheduler-issues-in-wpforms/ For support, please visit: https://www.facebook.com/groups/wpformsvip */ function custom_as_retention_period() { return WEEK_IN_SECONDS; } add_filter( ‘action_scheduler_retention_period’, ‘custom_as_retention_period’ );Continue reading

Auto register guests that purchase (copy)

function wc_register_guests( $order_id ) { // get all the order data $order = new WC_Order($order_id); //get the user email from the order $order_email = $order->billing_email; // check if there are any users with the billing email as user or email…Continue reading

Force WPForms to use modern markup

/* Adding a background image to your forms. Original doc link: https://wpforms.com/docs/styling-your-forms/ For support, please visit: https://www.facebook.com/groups/wpformsvip */ add_filter( ‘wpforms_admin_settings_modern_markup_register_field_is_disabled’, ‘__return_false’ );Continue reading

WPForms Enable Modern Markup Settings

/* Adding a background image to your forms. Original doc link: https://wpforms.com/docs/how-to-add-a-background-image-in-wpforms/ For support, please visit: https://www.facebook.com/groups/wpformsvip */ add_filter( ‘wpforms_admin_settings_modern_markup_register_field_is_hidden’, ‘__return_false’ );Continue reading

Adding a Background Image to Your Forms

/* Adding a background image to your forms. Original doc link: https://wpforms.com/docs/how-to-add-a-background-image-in-wpforms/ For support, please visit: https://www.facebook.com/groups/wpformsvip */ .wpf-custom-background { background-image: url(/path/wpforms-backdrop.png) !important; padding: 15px 35px !important; /*Padding is optional, but improves appearance when using a background image in your…Continue reading

Decrease the retention period to one week for the Action Scheduler

/* Decrease the retention period to one week for the Action Scheduler Original doc link: https://wpforms.com/docs/how-to-troubleshoot-action-scheduler-issues-in-wpforms/ For support, please visit: https://www.facebook.com/groups/wpformsvip */ function custom_as_retention_period() { return WEEK_IN_SECONDS; } add_filter( ‘action_scheduler_retention_period’, ‘custom_as_retention_period’ );Continue reading

How to Add Custom Code Snippets in WordPress

/* Modify the login URL to redirect to a custom login page. Original doc link: https://wpforms.com/how-to-add-custom-code-snippets-in-wordpress/ For support, please visit: https://www.facebook.com/groups/wpformsvip */ .wpforms-container input[type=radio] { -webkit-appearance: radio !important; -moz-appearance: radio !important; appearance: radio !important; } .wpforms-container input[type=checkbox] { -webkit-appearance: checkbox…Continue reading