* WPV_Frontend_Render_Filters * * Pre-process Views shortcodes in several scenarios. * * This helper class provides a single callback to parse Views shortcodes in a fixed order: * - Resolve wpv-for-each shortcodes along. * - Resolve shortcodes inside shortcodes (see wpv-shortcodes-in-shortcodes.php). * - Resolve wpv-if shortcodes (see wpv-condition.php). * - Resolve shortcodes used as HTML attributes. * Note that this same calbacks in the same order are applied in the the_content, in the wpv_filter_wpv_the_content_suppressed and in the wpv-pre-do-shortcode filters. * Also note that they are executed early, priority 5, to keep compatibility with third parties doing the same at 7. * * @since 1.9.1 */ WPV_Frontend_Render_Filters::on_load(); class WPV_Frontend_Render_Filters { static function on_load() { add_filter( 'the_content', array( 'WPV_Frontend_Render_Filters', 'the_content' ), 5 ); add_filter( 'wpv_filter_wpv_the_content_suppressed', array( 'WPV_Frontend_Render_Filters', 'the_content' ), 5 ); add_filter( 'wpv-pre-do-shortcode', array( 'WPV_Frontend_Render_Filters', 'wpv_pre_do_shortcode' ), 5 ); } static function the_content( $content ) { $content = WPV_Formatting_Embedded::resolve_wpv_noautop_shortcodes( $content ); $content = wpv_preprocess_foreach_shortcodes( $content );