Filter Shortcode

UPCOMMING . . . .

You can disable all the shortcode placed in your website. It will remove all the code from your website. Just add below code to your theme’s functions.php file.

/**
 * Filter to disable all shortcode.
 * 
 * @param boolean $enable
 */

 add_filter( 'chpadb/hide/shortcode', function($enable){
 	return false;
 });

Above code will disable all the shortcode placed in your website.

To enable the disabled shortcodes,

/**
 * Filter to enable all shortcode.
 * 
 * @param boolean $enable
 */

 add_filter( 'chpadb/hide/shortcode', function($enable){
 	return true;
 });

Join Our Newsletter Now

Get the latest tutorials, examples and projects updates.