Disable a Form Field to Prevent User Input

/** * Make standard form fields to make read-only * To apply, add CSS class ‘wpf-disable-field’ (no quotes) to field in form builder * * @link https://wpforms.com/developers/disable-a-form-field-to-prevent-user-input/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_disable_field() { ?>Continue reading

Block IP Addresses From Completing Your Form

/** * Block form submissions based on IP address * * @link https://wpforms.com/developers/how-to-block-ip-addresses-from-completing-your-form/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_ip_block( $fields, $entry, $form_data ) { // Get the current users IP address $ip_address = wpforms_get_ip(); // Enter…Continue reading

Add TikTok to the social tab of settings

add_filter( ‘wcvendors_social_media_settings’, ‘wcvendors_add_social_media_settings’ ); function wcvendors_add_social_media_settings( $settings ) { $tiktok = array( ‘id’ => ‘_wcv_tiktok_username’, ‘label’ => __( ‘Tiktok username’, ‘wcvendors-pro’ ), ‘placeholder’ => __( ‘Tiktok Username’, ‘wcvendors-pro’ ), ‘desc_tip’ => ‘true’, ‘description’ => __( ‘Your tiktok username.’, ‘wcvendors-pro’ ),…Continue reading

Centering a form

/* Center the form inside a container Original doc link: https://wpforms.com/developers/how-to-center-a-form/ For support, please visit: https://www.facebook.com/groups/wpformsvip */ .wpforms-container.wpf-center { margin: 0 auto !important; /* Adjust the width in the next 2 lines as your site needs */ max-width: 500px !important;…Continue reading

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