2020-05-02 / 4813阅 / 悠然
从指定的过滤器挂钩中删除功能。
此函数删除附加到指定过滤器挂钩的函数。此方法可用于删除附加到特定过滤器挂钩的默认功能,并可能用替代品替换它们。
要删除一个钩子,添加钩子时,$ function_to_remove和$ priority参数必须匹配。这适用于过滤器和操作。不会发出警告>
(string)
(Required)
The filter hook to which the function to be removed is hooked.
(callable)
(Required)
The name of the function which should be removed.
(int)
(Optional)
The priority of the function.
Default value: 10
(bool) Whether the function existed before it was removed.