self::FILTER_CAPABILITY, self::get_plugin_access(
self::FILTER_CAPABILITY, self::get_plugin_access(
Appears in: redirection.5.9.0
Hook Type: filter
Displaying hooks found in version: redirection.5.9.0apply_filters('self::FILTER_CAPABILITY, self::get_plugin_access(') is found 1 times:
- /redirection-capabilities.php line 82
* @return bool */ public static function has_access( $cap_name ) { // Get the capability using the default plugin access as the base. Old sites overriding `redirection_role` will get access to everything $cap_to_check = apply_filters( self::FILTER_CAPABILITY, self::get_plugin_access(), $cap_name ); // Check the capability return current_user_can( $cap_to_check ); } /**