Last active
August 30, 2018 19:00
-
-
Save iamchetanp/c9184df5e42ec9c2988277c3ec4d723e to your computer and use it in GitHub Desktop.
To strp shortcodes form SEOPress plugin meta 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
/** | |
* To strp shortcodes form SEOPress plugin meta description. | |
* | |
* @param string $html Meta description text. | |
* | |
* @return string Meta description text without shortcode tags. | |
*/ | |
function cp_strip_shortcodes( $html ) { | |
return strip_shortcodes( $html ); | |
} | |
add_filter( 'seopress_titles_desc', 'cp_strip_shortcodes' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment