Created
September 27, 2017 17:16
-
-
Save SanjeevMohindra/434652f88f19193086337ab6189391b3 to your computer and use it in GitHub Desktop.
Remove ShortCode Plugin From WordPress
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
<?php | |
/** | |
* Remove ShortCode Plugin | |
* | |
* This function will remove the shortcode from getting diplayed. Add this to your function.php | |
* | |
* @author MetaBlogue | |
* @license GPL-2.0+ | |
* @link https://metablogue.com/wordpress-remove-shortcode-plugin/ | |
*/ | |
// Sample Shortcode for removing it from display | |
function mb_test_shortcode( $atts ) { | |
return ''; | |
} | |
add_shortcode('testshortcode', 'mb_test_shortcode'); | |
add_shortcode('testshortcode1', 'mb_test_shortcode'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment