wpseek.com
WordPress开发者和主题制作者的搜索引擎



pre_user_id › WordPress过滤钩子

Since1.5.0
已弃用n/a
› apply_filters( 'pre_user_id', $commentdata['user_ID'] )
参数:
  • () user_id The comment author's user ID.
    Required: Yes
定义在:
文档:

Filters the comment author's user ID before it is set.

The first time this filter is evaluated, `user_ID` is checked (for back-compat), followed by the standard `user_id` value.




源码

$commentdata['user_id'] = apply_filters( 'pre_user_id', $commentdata['user_ID'] );