首页 WordPress函数大全 delete_plugins()

delete_plugins()

2020-05-01 / 2160阅 / 悠然

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

delete_plugins( string[] $plugins, string $deprecated = '' )

Remove directory and files of a plugin for a list of plugins.

描述

参数

$plugins

(string[])
(Required)
List of plugin paths to delete, relative to the plugins directory.

$deprecated

(string)
(Optional)
Not used.

Default value: ''

返回

(bool|null|WP_Error) True on success, false if $plugins is empty, WP_Error on failure. null if filesystem credentials are required to proceed.

大家谈论
    我的见解