WordPress at a glance
filter is not described

map_meta_cap filter-hook . WP 2.8.0

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


add_filter( 'map_meta_cap', 'filter_function_name_3932', 10, 4 );
function filter_function_name_3932( $caps, $cap, $user_id, $args ){
	// filter...

	return $caps;
Array of the user's capabilities.
Capability name.
The user ID.
Adds the context to the cap. Typically the object ID.


Since 2.8.0 Introduced.

Where the hook is called

wp-includes/capabilities.php 634
return apply_filters( 'map_meta_cap', $caps, $cap, $user_id, $args );

Where in WP core the hook is used WordPress

wp-includes/capabilities.php 2949
add_filter( 'map_meta_cap', array( $this, 'grant_edit_post_capability_for_changeset' ), 10, 4 );
wp-includes/capabilities.php 2956
remove_filter( 'map_meta_cap', array( $this, 'grant_edit_post_capability_for_changeset' ), 10 );