RT7 Official – Maintenance Mode

function custom_maintenance_mode() { if ( ! is_user_logged_in() ) { header( ‘HTTP/1.1 503 Service Temporarily Unavailable’ ); header( ‘Content-Type: text/html; charset=utf-8’ ); header( ‘Retry-After: 3600’ ); // You can change this value to set a different retry time (in seconds). ?>…Continue reading

Limit Range Allowed in Numbers Field

/** * Limit number range allowed for a Numbers field * Apply the class “wpf-num-limit” to the field to enable. * * @link https://wpforms.com/developers/how-to-limit-range-allowed-in-numbers-field/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_num_limit() { ?>Continue reading

Skip Page Breaks When Using Conditional Logic

/** * Skip empty page breaks if the condition is not met * * @link https://wpforms.com/developers/how-to-skip-page-breaks-when-using-conditional-logic/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_skip_empty_pages() { ?>Continue reading

Change Sublabels for the Name Field

/** * Customize name field properties. * * @link https://wpforms.com/developers/how-to-change-sublabels-for-the-name-field/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_name_field_properties( $properties, $field, $form_data ) { // Change the text for the sublabel $properties[ ‘inputs’ ][ ‘first’ ][ ‘sublabel’ ][ ‘value’…Continue reading

Change Sublabels for the Email Field

/** * Customize email field properties. * * @link https://wpforms.com/developers/how-to-change-sublabels-for-the-email-field/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_email_field_properties( $properties, $field, $form_data ) { // Change the text for the sublabel $properties[ ‘inputs’ ][ ‘primary’ ][ ‘sublabel’ ][ ‘value’…Continue reading

Change Sublabels for the Stripe Credit Card Field

/** * Customize Stripe credit card field properties. * * @link https://wpforms.com/developers/how-to-change-sublabels-for-the-credit-card-field * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_creditcard_field_properties( $properties, $field, $form_data ) { // Change sub-label text on the Card Number field $properties[ ‘inputs’ ][ ‘number’…Continue reading

Display Entry Submissions Count for a Specific Form

/** * Shortcode that displays the number of completed entries for a form. * * Usage: [wpforms_entry_total form_id=”X”] – X is the form ID. * * @link https://wpforms.com/developers/display-entry-submissions-count-for-a-specific-form/ */ function wpf_dev_form_entry_total( $atts ) { $args = shortcode_atts( array( ‘form_id’ =>…Continue reading

Purge your Site

/* Plugin Name: Purge Cache Description: Adds a button to the WordPress dashboard to clear the object cache */ add_action( ‘admin_bar_menu’, ‘add_purge_cache_button’, 999 ); function add_purge_cache_button( $wp_admin_bar ) { if ( ! current_user_can( ‘manage_options’ ) ) { return; } $args…Continue reading

How to Disable the Email Address Suggestion

/** * Disable the email address suggestion. * * @link https://wpforms.com/developers/how-to-disable-the-email-suggestion-on-the-email-form-field/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ add_filter( ‘wpforms_mailcheck_enabled’, ‘__return_false’ );Continue reading