Disable Blog Posts

// Remove side menu add_action( ‘admin_menu’, function () { remove_menu_page( ‘edit.php’ ); } ); // Remove +New post in top Admin Menu Bar add_action( ‘admin_bar_menu’, function ( $wp_admin_bar ) { $wp_admin_bar->remove_node( ‘new-post’ ); }, 999 ); // Remove Quick Draft…Continue reading

Remove the Key Text on Conversational Forms

/* Remove the Key Text from Conversational Forms Original doc link: https://wpforms.com/developers/how-to-change-the-key-text-on-conversational-forms/ For support, please visit: https://www.facebook.com/groups/wpformsvip */ #wpforms-conversational-form-page div[class^=’wpforms-field-‘] li:not(.wpforms-image-choices-item) label:before, #wpforms-conversational-form-page div[class*=’ wpforms-field-‘] li:not(.wpforms-image-choices-item) label:before, #wpforms-conversational-form-page div[class^=’wpforms-field-‘] li:not(.wpforms-image-choices-item):not(.wpforms-selected) label:hover:before, #wpforms-conversational-form-page div[class*=’ wpforms-field-‘] li:not(.wpforms-image-choices-item):not(.wpforms-selected) label:hover:before, #wpforms-conversational-form-page div[class^=’wpforms-field-‘] li:not(.wpforms-image-choices-item):not(.wpforms-selected) label.wpforms-field-item-hover:before,…Continue reading

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