首页 WordPress函数大全 resume_plugin()

resume_plugin()

2020-05-02 / 2455阅 / 悠然

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

resume_plugin( string $plugin, string $redirect = '' )

尝试恢复单个插件。

描述

如果提供了重定向,我们首先确保插件不再引发致命错误。

它的工作方式是在尝试包含插件文件之前,将重定向设置为错误。如果插件失败,那么重定向将不会被成功消息覆盖,并且插件也不会恢复。

参数

$plugin

(string)
(Required)
Single plugin to resume.

$redirect

(string)
(Optional)
URL to redirect to.

Default value: ''

返回

(bool|WP_Error) True on success, false if $plugin was not paused, WP_Error on failure.

大家谈论
    我的见解