PHP code example of jazzman / wp-performance-shortcode
1. Go to this page and download the library: Download jazzman/wp-performance-shortcode library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jazzman / wp-performance-shortcode example snippets
apply_filters('shortcode_disable_nested_rendering', '__return_true');
function disable_nesting_on_post_shortcodes( $retval, $tag ) {
$blacklist = array('post', 'column');
if( in_array( $tag, $blacklist ) ) {
return true;
}
return $retval;
}
apply_filters('shortcode_disable_nested_rendering', 'disable_nesting_on_post_shortcodes', 10, 2);