首页 WordPress函数大全 get_theme_file_uri()

get_theme_file_uri()

2020-05-01 / 4045阅 / 悠然

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

get_theme_file_uri( string $file = '' )

Retrieves the URL of a file in the theme.

描述

Searches in the stylesheet directory before the template directory so themes which inherit from a parent theme can just override>

参数

$file

(string)
(Optional)
File to search for in the stylesheet directory.

Default value: ''

返回

(string) The URL of the file.

大家谈论
    我的见解