su_shortcode_display_posts_include_template

The shortcodes-ultimate su shortcode display posts include template function.

Published Date - February 15, 2021

Description

su_shortcode_display_posts_include_template( $su_query, $atts );

Parameters

  1. $su_query

  2. $atts


Usage

The following example is for adding a hook callback.

if ( !function_exists( 'su_shortcode_display_posts_include_template' ) ) {
    require_once ABSPATH . PLUGINDIR . 'shortcodes-ultimateshortcodes-ultimate/includes/shortcodes/display-posts.php';
}

// The input(s). 
$su_query = null;
$atts = null;

// NOTICE! Understand what this does before running.
$result = su_shortcode_display_posts_include_template( $su_query, $atts );
            

Defined

The function is defined in the following location(s).

shortcodes-ultimate/includes/shortcodes/display-posts.php

function su_shortcode_display_posts_include_template( $su_query, $atts ) {

	ob_start();

	include $atts['template'];

	return ob_get_clean();

}