首页 WordPress函数大全 get_theme_root_uri()

get_theme_root_uri()

2020-05-02 / 4810阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

get_theme_root_uri( string $stylesheet_or_template = '', string $theme_root = '' )

Retrieve URI for themes directory.

描述

Does not have trailing slash.

参数

$stylesheet_or_template

(string)
(Optional)
The stylesheet or template name of the theme. Default is to leverage the main theme root.

Default value: ''

$theme_root

(string)
(Optional)
The theme root for which calculations will be based, preventing the need for a get_raw_theme_root() call.

Default value: ''

返回

(string) Themes directory URI.

大家谈论
    我的见解