首页 WordPress函数大全 register_uninstall_hook()

register_uninstall_hook()

2020-05-02 / 4693阅 / 悠然

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

register_uninstall_hook( string $file, callable $callback )

设置插件的卸载挂钩。

描述

注册当用户单击>时将调用的卸载钩子

参数

$file

(string)
(Required)
Plugin file.

$callback

(callable)
(Required)
The callback to run when the hook is called. Must be a static method or function.

大家谈论
    我的见解