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.1

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

  • /wp-includes/capabilities.php line 512
    					 * @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.