1. 首页
  2. WordPress 函数手册

make_site_theme_from_oldschool()

make_site_theme_from_oldschool( string $theme_name, string $template )

从现有主题创建网站主题。
Creates a site theme from an existing theme.

目录锚点:#参数#返回#源码


参数(Parameters)

参数 类型 必填 说明
$theme_name (string) 必需 主题的名称。
$template (string) 必需 主题的目录名。

返回(Return)

(bool)


源码(Source)


更新版本 源码位置 使用 被使用
1.5.0 wp-admin/includes/upgrade.php:2983 1 function 1 function

make_site_theme_from_oldschool() 为WP2原创文章,链接:https://www.wp2.cn/functions/make_site_theme_from_oldschool/