Defer the reCAPTCHA Script

/** * Defer the reCAPTCHA script until after the page loads * * @link https://wpforms.com/developers/how-to-defer-the-recaptcha-script/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_recaptcha_add_async_defer( $tag, $handle ) { if ( strpos( $tag, ‘recaptcha/api.js?onload=wpformsRecaptchaLoad’ ) !== false ) { $tag…Continue reading

Change Position of v2 Invisible reCAPTCHA Badge

/** * Change position of v2 Invisible reCAPTCHA badge * * @link https://wpforms.com/developers/how-to-change-the-position-of-the-v2-invisible-recaptcha-badge/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_invisible_recaptcha_position( $data, $form_data ) { $type = wpforms_setting( ‘recaptcha-type’, ‘v2’ ); if ( ‘invisible’ === $type ) {…Continue reading

Display Shortcodes Inside HTML Fields

/** * Run shortcodes on HTML field content * * @link https://wpforms.com/developers/how-to-display-shortcodes-inside-the-html-field/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_html_field_shortcodes( $field, $field_atts, $form_data ) { if ( ! empty( $field[ ‘code’ ] ) ) { $field[ ‘code’ ]…Continue reading

Set Default Date for Date Picker

/** * Sets a default date for Date Picker * * @link https://wpforms.com/developers/how-to-set-a-default-date-for-your-date-picker-form-field/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_date_picker_default() { ?>Continue reading

Allow Multiple Dates Selection in Date Picker

/** * Adds the ability to select multiple dates inside the Date Picker field * * @link https://wpforms.com/developers/allow-date-range-or-multiple-dates-in-date-picker/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_date_picker_multiple() { ?>Continue reading

Allow Date Range Selection in Date Picker

/** * Adds a date range inside the date picker field. * * @link https://wpforms.com/developers/allow-date-range-or-multiple-dates-in-date-picker/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_date_picker_range() { ?>Continue reading

Change the Required Field Indicator

/** * Modify the required field indicator * * @link https://wpforms.com/developers/how-to-change-required-field-indicator/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_required_indicator( $text ) { return ‘ ‘ . __( ‘*’, ‘wpforms’ ) . ‘‘; } add_filter( ‘wpforms_get_field_required_label’, ‘wpf_dev_required_indicator’, 10, 1…Continue reading

Display Form After Confirmation

/** * Display form after confirmation * * @link https://wpforms.com/developers/how-to-display-the-confirmation-and-the-form-again-after-submission/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_frontend_output_success( $form_data, $fields, $entry_id ) { // Only process this snippet on form ID 999999 // To find your form or…Continue reading

Change CSV Export Delimiter

/** * Filters the delimiter used in CSV exports of form entries * * @link https://wpforms.com/developers/change-csv-export-delimiter/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_pro_admin_entries_export_configuration( $configuration ) { $configuration[ ‘csv_export_separator’ ] = ‘;’; return $configuration; } add_filter( ‘wpforms_pro_admin_entries_export_configuration’, ‘wpf_dev_pro_admin_entries_export_configuration’,…Continue reading

Display Non-Input Fields in Notifications

/** * Filters non-input field types to include in {all_fields} output * * @link https://wpforms.com/developers/include-page-break-section-divider-and-html-fields-in-notifications/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_email_display_other_fields( $fields ) { return array( ‘divider’, ‘pagebreak’, ‘html’, ‘content’ ); } add_filter( ‘wpforms_email_display_other_fields’, ‘wpf_dev_email_display_other_fields’, 10,…Continue reading