auth_{$object_type}_meta_{$meta_key}

auth_{$object_type}_meta_{$meta_key}

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('auth_{$object_type}_meta_{$meta_key}') is found 1 times:

  • /wp-includes/capabilities.php line 512
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
         * @param int      $user_id   User ID.
         * @param string   $cap       Capability name.
         * @param string[] $caps      Array of the user's capabilities.
         */
        $allowed = apply_filters( "auth_{$object_type}_meta_{$meta_key}", $allowed, $meta_key, $object_id, $user_id, $cap, $caps );
    }
     
    if ( ! empty( $object_subtype ) ) {
     
        /**
         * Filters whether the user is allowed to edit meta for specific object types/subtypes.