map_meta_cap

map_meta_cap

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.6

apply_filters('map_meta_cap') is found 1 times:

  • /wp-includes/capabilities.php line 842
    	 * @param int      $user_id The user ID.
    	 * @param array    $args    Adds context to the capability check, typically
    	 *                          starting with an object ID.
    	 */
    	return apply_filters( 'map_meta_cap', $caps, $cap, $user_id, $args );
    }
    
    /**
     * Returns whether the current user has the specified capability.
     *
     * This function also accepts an ID of an object to check against if the capability is a meta capability. Meta
    

See this hook used in plugins: