Created
April 2, 2015 10:14
-
-
Save woogist/efc7b84d6f9548e18361 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' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment