su_shortcode_posts_include_template

The shortcodes-ultimate su shortcode posts include template function.

Published Date - February 15, 2021

Description

su_shortcode_posts_include_template( $atts, $posts );

Parameters

  1. $atts

  2. $posts


Usage

The following example is for adding a hook callback.

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

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

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

Defined

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

shortcodes-ultimate/includes/shortcodes/posts.php

function su_shortcode_posts_include_template( $atts, $posts ) {

	ob_start();

	include $atts['template'];

	return ob_get_clean();

}