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



role_has_cap › WordPress过滤钩子

Since2.0.0
已弃用n/a
apply_filters( 'role_has_cap', $this->capabilities, $cap, $this->name )
参数: (3)
  • (bool[]) $capabilities Array of key/value pairs where keys represent a capability name and boolean values represent whether the role has that capability.
    Required: Yes
  • (string) $cap Capability name.
    Required: Yes
  • (string) $name Role name.
    Required: Yes
定义在:
文档:

Filters which capabilities a role has.





源码

$capabilities = apply_filters( 'role_has_cap', $this->capabilities, $cap, $this->name );