resume_theme()
resume_theme( string $theme, string $redirect = ” )
尝试恢复单个主题。
Tries to resume a single theme.
说明(Description)
如果提供了重定向,并且函数.php找到了文件,我们首先确保函数.php文件不再抛出致命错误。
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$theme | (string) | 必需 | 要继续的单一主题。 |
$redirect | (string) | 可选 | 要重定向到的URL。 |
返回(Return)
(bool|WP嫒Error)成功时为True,如果$theme未暂停则为false,失败时为WP嫒Error。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
5.2.0 | wp-admin/includes/theme.php:866 | 0 | 6 |
resume_theme() 为WP2原创文章,链接:https://www.wp2.cn/functions/resume_theme/