wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



auth_{$object_type}_meta_{$meta_key} › WordPress Filter Hooks

Da4.6.0
Deprecaton/a
› apply_filters( "auth_{$object_type}_meta_{$meta_key}", $allowed, $meta_key, $object_id, $user_id, $cap, $caps )
Parametri: (6)
  • () allowed Whether the user can add the object meta. Default false.
    Richiesto: Sì
  • () meta_key The meta key.
    Richiesto: Sì
  • () object_id Object ID.
    Richiesto: Sì
  • () user_id User ID.
    Richiesto: Sì
  • () cap Capability name.
    Richiesto: Sì
  • () caps Array of the user's capabilities.
    Richiesto: Sì
Definito a:
Codex:

Filters whether the user is allowed to edit a specific meta key of a specific object type.

Return true to have the mapped meta caps from `edit_{$object_type}` apply. The dynamic portion of the hook name, `$object_type` refers to the object type being filtered. The dynamic portion of the hook name, `$meta_key`, refers to the meta key passed to map_meta_cap().




Sorgenti

$allowed = apply_filters( "auth_{$object_type}_meta_{$meta_key}", $allowed, $meta_key, $object_id, $user_id, $cap, $caps );