Hubspot Support Widget
function add_hubspot_embed_code() { echo ‘ ‘; } add_action(‘admin_footer’, ‘add_hubspot_embed_code’) ?>Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
function add_hubspot_embed_code() { echo ‘ ‘; } add_action(‘admin_footer’, ‘add_hubspot_embed_code’) ?>Continue reading
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
/** Remove the order field from checkout.**/ function devpress_remove_checkout_phone_field( $fields ) { unset( $fields[‘order’][‘order_comments’] ); return $fields; } add_filter( ‘woocommerce_checkout_fields’, ‘devpress_remove_checkout_phone_field’ );Continue reading
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
function jquery_parallax() { ?>Continue reading
/** * 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
// add upsells below add-to-cart button add_action( ‘woocommerce_single_product_summary’, ‘woocommerce_upsell_display’, 40 );Continue reading
/** * 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
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
/** * 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