I dis­abled the plu­g­in and now un­parsed [media-​credit] short­codes are ap­pear­ing all over my site. Help!

Add this to your the­me’s functions.php file to get rid of those pesky media-credit shortcodes:

<?php
function ignore_media_credit_shortcode( $atts, $content = null ) {
    return $content;
}
global $shortcode_tags;
if ( !array_key_exists( 'media-credit', $shortcode_tags ) )
    add_shortcode('media-credit', 'ignore_media_credit_shortcode' );
?>

Al­so, I’d re­al­ly ap­pre­ci­ate it if you gave us some feed­back as to why you dis­abled the plu­g­in and how it could have bet­ter suit­ed your needs.


mnd.sc-Admin

More posts

| | Posted in | Comments Off on I dis­abled the plu­g­in and now un­parsed [media-​credit] short­codes are ap­pear­ing all over my site. Help!
Comments are disabled for this post.