su/allowed_template_paths

The shortcodes-ultimate su/allowed template paths hook.

Published Date - February 15, 2021

Description

 Extract CSS class name(s) from shortcode $atts and prepend with a space.

$allowed = apply_filters(
		'su/allowed_template_paths',
		array(
			get_stylesheet_directory(),
			get_template_directory(),
			plugin_dir_path( dirname( __FILE__ ) ),
		)
	);

Parameters

  1. $array, get_template_directory, plugin_dir_path))


Usage

The following example is for adding a hook callback.

// define the su/allowed_template_paths callback 
function custom_su_allowed_template_paths( $array, get_template_directory, plugin_dir_path)) ){ 
   //custom code here
    return $array, get_template_directory, plugin_dir_path))
} 

//add the action 
add_filter('su/allowed_template_paths', 'custom_su/allowed_template_paths', 10, 1)

Defined

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

shortcodes-ultimate/includes/functions-helpers.php

$allowed = apply_filters(
		'su/allowed_template_paths',
		array(
			get_stylesheet_directory(),
			get_template_directory(),
			plugin_dir_path( dirname( __FILE__ ) ),
		)
	);