make_site_theme_from_default()
make_site_theme_from_default( string $theme_name, string $template )
从默认主题创建网站主题。
Creates a site theme from the default theme.
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$theme_name | (string) | 必需 | 主题的名称。 |
$template | (string) | 必需 | 主题的目录名。 |
返回(Return)
(无效|错误)
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
1.5.0 | wp-admin/includes/upgrade.php:3076 | 1 function | 0 |
make_site_theme_from_default() 为WP2原创文章,链接:https://www.wp2.cn/functions/make_site_theme_from_default/