How To Export Products
add_filter( ‘wcv_export_orders_use_shipping_address’, function( $use_shipping_address ) { return false; } );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter( ‘wcv_export_orders_use_shipping_address’, function( $use_shipping_address ) { return false; } );Continue reading
[wcv_vendor_dashboard]Continue reading
function wcv_image_uploader( ){ echo ”; echo ‘Image Uploader’; $value = get_user_meta( get_current_user_id(), ‘_wcv_custom_settings_image_example’, true ); WCVendors_Pro_Form_Helper::file_uploader( array( ‘id’ => ‘_wcv_custom_settings_image_example’, ‘header_text’ => __(‘Image uploader’, ‘wcvendors-pro’ ), ‘add_text’ => __(‘Add image file’, ‘wcvendors-pro’ ), ‘remove_text’ => __(‘Remove image file’, ‘wcvendors-pro’ ),…Continue reading
WCVendors_Pro_Form_Helper::input( array( ‘post_id’ => $post_id, ‘type’ => ‘hidden’, ‘id’ => ‘post_id’, ‘value’ => $post_id ) );Continue reading
add_action( ‘wcvendors_settings_after_seller_info’, ‘checkbox_check’ ); function checkbox_check(){ $key = ‘_wcv_custom_settings_checkbox3’; $value = get_user_meta( get_current_user_id(), $key, true ); WCVendors_Pro_Form_Helper::input( apply_filters( $key, array( ‘id’ => $key, ‘label’ => __( ‘Fairtrade’, ‘wcvendors-pro’ ), ‘type’ => ‘checkbox’, ‘desc_tip’ => true, ‘value’ => $value, ‘description’ =>…Continue reading
WCVendors_Pro_Form_Helper::textarea( apply_filters( ‘wcv_product_description’, array( ‘post_id’ => $post_id, ‘id’ => ‘post_content’, ‘label’ => __( ‘Product description’, ‘wcvendors-pro’ ), ‘value’ => $product_description, ‘placeholder’ => __( ‘Please add a full description of your product here’, ‘wcvendors-pro’ ), ‘custom_attributes’ => $custom_attributes, ) ) );Continue reading
WCVendors_Pro_Form_Helper::select( array( ‘post_id’ => $post_id, ‘id’ => ‘_download_type’, ‘class’ => ‘select’, ‘label’ => __( ‘Download Type’, ‘wcvendors-pro’ ), ‘desc_tip’ => ‘true’, ‘description’ => sprintf( __( ‘Choose a download type – this controls the http://schema.org.’, ‘wcvendors-pro’ ), ‘http://schema.org/’ ), ‘options’ =>…Continue reading
WCVendors_Pro_Form_Helper::select2( array( ‘post_id’ => $post_id, ‘id’ => ‘product_cat[]’, ‘taxonomy’ => ‘product_cat’, ‘class’ => ‘category-select2’, ‘show_option_none’ => $show_option_none, ‘taxonomy_args’ => array( ‘hide_empty’ => 0, ‘orderby’ => ‘order’, ‘exclude’ => $exclude, ), ‘label’ => ( $multiple ) ? __( ‘Categories’, ‘wcvendors-pro’ )…Continue reading
‘text’, ‘post_id’ => $object_id, ‘id’ => ‘wcv_custom_product_ingredients’, ‘label’ => __( ‘Ingredients’, ‘wcvendors-pro’ ), ‘placeholder’ => __( ‘Ingredients’, ‘wcvendors-pro’ ), ‘desc_tip’ => ‘true’, ‘description’ => __( ‘The product ingredients’, ‘wcvendors-pro’ ), ) ); ?>Continue reading
get_title() : ”; $product_description = ( isset( $product ) && null !== $product ) ? $post->post_content : ”; $product_short_description = ( isset( $product ) && null !== $product ) ? $post->post_excerpt : ”; $post_status = ( isset( $product ) &&…Continue reading