Search results for: admin
Custom Tab Order For Dashboard
// Add this to your themes functions.php to change the order, rearrage the lines. First line…
Use Billing Address in Order Exports
add_filter( 'wcv_export_orders_use_shipping_address', 'wcv_order_export_use_shipping_address' ); function wcv_order_export_use_shipping_address( ){ return false;
Use Full Store Address in Ships From
add_filter( 'wcv_product_ships_from', 'ships_from_address' ); function ships_from_address( $field ){ global $post, $product; $shipping_disabled = wc_string_to_bool( get_option( 'wcvendors_shipping_management_cap',…
Add menu item to vendor dashboard
// Add this to your themes functions.php function add_menu_item( $pages ){ $pages[] = array( 'label' =>…
Allow WooCommerce Shop Managers to manage vendors
/* Lets Shop Managers edit users with these user roles */ function wcv_allow_shop_manager_role_edit_capabilities( $roles ) {…
Enable Full WP_Editor on Product Fields
add_filter( 'wcv_product_description_editor_settings', 'wcv_full_editor' ); add_filter( 'wcv_product_short_description_editor_settings', 'wcv_full_editor' ); function wcv_full_editor( $settings ){ $settings['teeny'] = false; return…
Change product edit tab order
Manually Sort
Change product edit tab order 2
Alphabetically Sort
Add extra shipping providers for vendor tracking numbers
$shipping_providers = array( 'Australia' => array( 'Australia Post' => 'https://auspost.com.au/mypost/track/#/details/%1$s', 'FedEx' => 'https://www.fedex.com/apps/fedextrack/?tracknumbers=%1$s&cntry_code=au', 'Fastway Couriers' =>…
Remove table from dashboard
if ( ! function_exists( 'wcv_remove_recent_order_table_columns' ) ) { /** * Remove columns from Recent Orders table…
Recent products table
if ( ! function_exists( 'wcv_remove_recent_product_table_columns' ) ) { /** * Remove columns from Recent Products table…
Make All Users Vendors
/** * Make all new user registrations Vendors. */ add_filter( 'woocommerce_new_customer_data', 'wcv_woocommerce_new_user_data' ); function wcv_woocommerce_new_user_data( $data…