添加插件钩子有两种方法

添加执行多次的插件钩子

hook($hook, &$params = null, $extra = null)

功能

添加执行多次的插件钩子

参数

$hook: string 钩子名称 $params: boolean 传入参数 $extra: boolean 额外参数

返回

string 插件执行结果

添加只执行一次的插件钩子

hook_one($hook, &$params = null, $extra = null)

功能

添加只执行一次的插件钩子

参数

$hook: string 钩子名称 $params: boolean 传入参数 $extra: boolean 额外参数

返回

string 插件执行结果

results matching ""

    No results matching ""