Created
January 2, 2013 20:46
-
-
Save DrewAPicture/4437842 to your computer and use it in GitHub Desktop.
Hide an old shortcode from post content after uninstalling a plugin
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
function hide_my_old_shortcode( $attr, $content ) { | |
return; | |
} | |
add_shortcode( 'my_old_shortcode', 'hide_my_old_shortcode' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment