Nested Shortcodes
-
Love this plugin! I just ran into a new issue however and was curious if you could suggest a fix.
I sometimes need to nest shortcodes, and I use the function below to disable the deep nesting check. However, this time I am inserting multiple pages each with another plugin’s shortcode in them and the function ends with the first page.
Do you have recommendations on how best to run this function for this scenario?
function your_theme_init() { // Disable nesting check to allow inserted pages within inserted pages. add_filter( 'insert_pages_apply_nesting_check', function ( $should_apply ) { return false; } ); } add_action( 'init', 'your_theme_init' );
Thanks for your help!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Nested Shortcodes’ is closed to new replies.