Skip to content

Instantly share code, notes, and snippets.

@xlimit91
Created June 3, 2019 18:47
Show Gist options
  • Save xlimit91/9c15911d42b6d6ee6874e1988ea75244 to your computer and use it in GitHub Desktop.
Save xlimit91/9c15911d42b6d6ee6874e1988ea75244 to your computer and use it in GitHub Desktop.
fix wordpress yoast shortcuts in description by wpbakery visual composer
add_filter('wpseo_metadesc', function($description){
if (strpos($description, '[vc_row][vc_column][vc_column_text]') !== false) {
$description = str_replace( '[vc_row][vc_column][vc_column_text]', '', $description ); }
return $description;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment