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…
MemberPress: Add Category Exception to All Post Rule
Add a category exception to the all posts rule instead of having to add the posts…
test
test
Current Year
function current_year_shortcode() { return date('Y'); } add_shortcode('year', 'current_year_shortcode');
login redirect changed from default my account page to home page
/** * WooCommerce My Account Page login Redirect */ add_action( 'wp_login', 'owp_redirect_after_logout' ); function owp_redirect_after_logout() {…
Hide SALE! Badges
/*Hide WooCommerce SALES Badges*/ .woocommerce span.onsale { display: none; } /*Hide SALES Badges in home page…
cart preview image stretch fix in oceanWP theme
/*Menu cart hover dropdown box image stretch fix*/ .woocommerce ul.product_list_widget li img { float: unset !important;…
disable joinchat whatsapp plugin on mobile biew
@media only screen and (max-width: 567px) { .joinchat{ position: absolute; bottom:70px; --s: 36px; margin-right:px; display:none }…