Enable product images in vendor order email notifications
add_filter( 'wcvendors_vendor_order_items_args', 'wcv_enable_product_image_vendor_order_email' ); function wcv_enable_product_image_vendor_order_email( $order_item_args ){ $order_item_args['show_image'] = true; return $order_item_args; }
Disable sold by link on checkout page
/** * Disable the sold by link on the checkout page */ add_filter('wcvendors_sold_by_link', 'wcv_disable_checkout_sold_by_link', 10, 2);…
Change the sold by label on the product archive
// Unhook WC Vendors method remove_action( 'woocommerce_after_shop_loop_item', array('WCV_Vendor_Shop', 'template_loop_sold_by'), 9 ); // Define new sold by…
Force product type for all products
// Disable the product type drop down. add_filter('wcv_disable_product_type', function() { return true; } ); /** *…
Add CSS classes to apply for vendor label
/** * Add CSS class to apply for vendor label in a registration * * @param…
Hide “Everywhere Else” on the countries dropdown
if ( ! function_exists( 'wcv_hide_everywhere_else' ) ) { /** * Hide the "Everywhere else" option in…
change the name of the Commission column
if ( ! function_exists( 'wcv_change_commission_table_columns_name' ) ) { /** * Change the name of the commission…
Including product tax to commission calculation
add_filter( 'wcvendors_commission_rate', 'wcv_calculate_commission_include_product_tax', 10, 5 ); function wcv_calculate_commission_include_product_tax( $commission, $product_id, $product_price, $order, $qty ) { $product…
Current Year
function current_year_shortcode() { return date('Y'); } add_shortcode('year', 'current_year_shortcode');
custom order status wpadmin
/* * Register a custom order status * * @author Misha Rudrastyh * @url https://rudrastyh.com/woocommerce/order-statuses.html */…
Bulk Change Custom Order Status wpadmin
add_filter( 'bulk_actions-edit-shop_order', 'misha_register_bulk_action' ); // edit-shop_order is the screen ID of the orders page function misha_register_bulk_action(…
wpadmin add phone number with address in orders page
add_action( 'manage_shop_order_posts_custom_column' , 'custom_orders_list_column_content', 50, 2 ); function custom_orders_list_column_content( $column, $post_id ) { global $the_order, $post;…