Created
February 28, 2019 22:12
-
-
Save KaineLabs/20f3909bbb53e02b972addd77712d56f to your computer and use it in GitHub Desktop.
Set Woocommerce Tab Slug.
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
<?php | |
/** | |
* Set woocommerce tab Slug. | |
*/ | |
function yzc_set_woocommerce_tab_slug() { | |
// Set new slug by default the slug is "shop". | |
return 'shop'; | |
} | |
add_filter( 'yz_woocommerce_tab_slug', 'yzc_set_woocommerce_tab_slug' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment