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

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

MemberPress: Remove all but nine countries from the drop-down

function mepr_remove_countries( $countries, $prioritize_my_country ) { return array( ‘AU’ => _x( ‘Australia’, ‘ui’, ‘memberpress’ ), ‘CA’ => _x( ‘Canada’, ‘ui’, ‘memberpress’ ), ‘DK’ => _x( ‘Denmark’, ‘ui’, ‘memberpress’ ), ‘FR’ => _x( ‘France’, ‘ui’, ‘memberpress’ ), ‘DE’ => _x( ‘Germany’,…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