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



map_meta_cap ›

Since2.8.0
已弃用n/a
apply_filters( 'map_meta_cap', $caps, $cap, $user_id, $args )
参数: (4)
  • (string[]) $caps Array of the user's capabilities.
    Required: Yes
  • (string) $cap Capability name.
    Required: Yes
  • (int) $user_id The user ID.
    Required: Yes
  • (array) $args Adds the context to the cap. Typically the object ID.
    Required: Yes
定义在:
文档:

Filters a user's capabilities depending on specific context and/or privilege.





源码

return apply_filters( 'map_meta_cap', $caps, $cap, $user_id, $args );