Un motore di ricerca WordPress per sviluppatori e autori di temi



map_meta_cap ›

Da2.8.0
Deprecaton/a
apply_filters( 'map_meta_cap', $caps, $cap, $user_id, $args )
Parametri: (4)
  • (string[]) $caps Array of the user's capabilities.
    Richiesto:
  • (string) $cap Capability name.
    Richiesto:
  • (int) $user_id The user ID.
    Richiesto:
  • (array) $args Adds the context to the cap. Typically the object ID.
    Richiesto:
Definito a:
Codex:

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





Sorgenti

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