A WordPress-centric search engine for devs and theme authors



map_meta_cap ›

Since2.8.0
Deprecatedn/a
apply_filters( 'map_meta_cap', $caps, $cap, $user_id, $args )
Parameters: (4)
  • (array) $caps Returns the user's actual capabilities.
    Required: Yes
  • (string) $cap Capability name.
    Required: Yes
  • (int) $user_id The user ID.
    Required: Yes
  • (array) $args Adds the context to the cap. Typically the object ID.
    Required: Yes
Defined at:
Codex:

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





Source

return apply_filters( 'map_meta_cap', $caps, $cap, $user_id, $args );