Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
PUM_Utils_Template::paths()
Description Description
Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
Return Return
(array)
Source Source
File: classes/Utils/Template.php
public static function paths() { $template_dir = apply_filters( 'pum_template_path', 'popup-maker' ); $old_template_dir = apply_filters( 'popmake_templates_dir', 'popmake_templates' ); $file_paths = apply_filters( 'pum_template_paths', array( 1 => trailingslashit( get_stylesheet_directory() ) . $template_dir, 2 => trailingslashit( get_stylesheet_directory() ) . $old_template_dir, 10 => trailingslashit( get_template_directory() ) . $template_dir, 11 => trailingslashit( get_template_directory() ) . $old_template_dir, 100 => Popup_Maker::$DIR . 'templates', ) ); /* @deprecated 1.8.9 */ $file_paths = apply_filters( 'popmake_template_paths', $file_paths ); // sort the file paths based on priority ksort( $file_paths, SORT_NUMERIC ); return array_map( 'trailingslashit', $file_paths ); }
Expand full source code Collapse full source code View on Trac