Created
April 7, 2015 07:19
-
-
Save woogist/fc2f28a2e20cbb9651b8 to your computer and use it in GitHub Desktop.
Allows shortcodes in the product vendor's description
This file contains hidden or 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
/** | |
* Allows shortcodes in the product vendor's description | |
* | |
* @param string $desc | |
* @return string | |
*/ | |
function wc_vendors_use_sc_in_desc( $desc ) { | |
return do_shortcode( $desc ); | |
} | |
add_filter( 'product_vendors_page_description', 'wc_vendors_use_sc_in_desc' ); | |
add_filter( 'product_vendors_tab_description', 'wc_vendors_use_sc_in_desc' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment