APP_Listing_Caps::map_meta_cap( array $caps, string $cap, int $user_id, array $args )

Filter a user’s capabilities depending on specific context and/or privilege.


Package


Description Description


Parameters Parameters

$caps

(array) (Required) Returns the user's actual capabilities.

$cap

(string) (Required) Capability name.

$user_id

(int) (Required) The user ID.

$args

(array) (Required) Adds the context to the cap. Typically the object ID.


Top ↑

Return Return

(array) Mapped caps

Premium WordPress Apps

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.