wp_set_template_globals()
Set up the globals used for template loading.
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
wp_set_template_globals();
Заметки
- Global. Строка. $wp_stylesheet_path Path to current theme's stylesheet directory.
- Global. Строка. $wp_template_path Path to current theme's template directory.
Список изменений
С версии 6.5.0 | Введена. |
Код wp_set_template_globals() wp set template globals WP 6.7.1
function wp_set_template_globals() { global $wp_stylesheet_path, $wp_template_path; $wp_stylesheet_path = get_stylesheet_directory(); $wp_template_path = get_template_directory(); }