Created
May 11, 2017 01:25
-
-
Save fervous/2a3488e57740423a3d0343f8f49ac996 to your computer and use it in GitHub Desktop.
Rename Change Product Type Label WC Vendors Pro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* WC Vendors Pro Rename Product Types */ | |
/* Simple change to Sell */ | |
add_filter('wcv_product_type_selector', 'wcv_product_type_selector_rename'); | |
function wcv_product_type_selector_rename( $product_type_selector ){ | |
if ( array_key_exists('simple', $product_type_selector ) ) $product_type_selector[ 'simple' ]= 'Sell'; | |
return $product_type_selector; | |
} | |
/* Bookable change to Rental */ | |
add_filter('wcv_product_type_selector', 'wcv_product_type_selector_rename_bookable'); | |
function wcv_product_type_selector_rename_bookable( $product_type_selector ){ | |
if ( array_key_exists('booking', $product_type_selector ) ) $product_type_selector[ 'booking' ]= 'Rental'; | |
return $product_type_selector; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment