role_has_cap, $this->capabilities, $cap, $this->name
role_has_cap, $this->capabilities, $cap, $this->name
Appears in: 7.0.3
Hook Type: filter
Displaying hooks found in version: 7.0.3apply_filters('role_has_cap, $this->capabilities, $cap, $this->name') is found 1 times:
- /wp-includes/class-wp-role.php line 95
* represent whether the role has that capability. * @param string $cap Capability name. * @param string $name Role name. */ $capabilities = apply_filters( 'role_has_cap', $this->capabilities, $cap, $this->name ); if ( ! empty( $capabilities[ $cap ] ) ) { return $capabilities[ $cap ]; } else { return false; }