su/shortcode/posts/allowed_template_locations

The shortcodes-ultimate su/shortcode/posts/allowed template locations hook.

Published Date - February 15, 2021

Description

$locations = apply_filters(
		'su/shortcode/posts/allowed_template_locations',
		array(
			get_stylesheet_directory(),
			get_template_directory(),
			path_join(
				su_get_plugin_path(),
				'includes/partials/shortcodes/posts'
			),
		)
	);

Parameters

  1. $array, get_template_directory, path_join, includes/partials/shortcodes/posts))


Usage

The following example is for adding a hook callback.

// define the su/shortcode/posts/allowed_template_locations callback 
function custom_su_shortcode_posts_allowed_template_locations( $array, get_template_directory, path_join, includes/partials/shortcodes/posts)) ){ 
   //custom code here
    return $array, get_template_directory, path_join, includes/partials/shortcodes/posts))
} 

//add the action 
add_filter('su/shortcode/posts/allowed_template_locations', 'custom_su/shortcode/posts/allowed_template_locations', 10, 1)

Defined

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

shortcodes-ultimate/includes/shortcodes/posts.php

$locations = apply_filters(
		'su/shortcode/posts/allowed_template_locations',
		array(
			get_stylesheet_directory(),
			get_template_directory(),
			path_join(
				su_get_plugin_path(),
				'includes/partials/shortcodes/posts'
			),
		)
	);