Skip to content

Instantly share code, notes, and snippets.

@SanjeevMohindra
Created September 27, 2017 17:16
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save SanjeevMohindra/434652f88f19193086337ab6189391b3 to your computer and use it in GitHub Desktop.
Remove ShortCode Plugin From WordPress
<?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