source/php/Display.php
public function filterNestedModuleShortocde($post)
    {
        if (is_admin()) {
            return $post;
        }

        if (substr($post->post_type, 0, 4) != 'mod-') {
            return $post;
        }

        $post->post_content = preg_replace('/\[modularity(.*)\]/', '', $post->post_content);
        return $post;
    }
public function filterNestedModuleShortocde($post)
    {
        if (is_admin()) {
            return $post;
        }

        if (substr($post->post_type, 0, 4) != 'mod-') {
            return $post;
        }

        $post->post_content = preg_replace('/\[modularity(.*)\]/', '', $post->post_content);
        return $post;
    }
public function filterNestedModuleShortocde ( $ post ) { if ( is_admin ( ) ) { return $ post ; } if ( substr ( $ post -> post_type , 0 , 4 ) != 'mod-' ) { return $ post ; } $ post -> post_content = preg_replace ( '/\[modularity(.*)\]/' , '' , $ post -> post_content ) ; return $ post ; }
Removes nested shortcodes
@param  WP_Post $post
@return WP_Post
Removes nested shortcodes