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.7.2

apply_filters('map_meta_cap') is found 1 times:

  • /wp-includes/capabilities.php line 876
    872
    873
    874
    875
    876
    877
    878
    879
    880
    881
    882
         * @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: