auth_{$object_type}_meta_{$meta_key}_for_{$object_subtype}

auth_{$object_type}_meta_{$meta_key}_for_{$object_subtype}

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

See hook in core

Displaying hooks found in version: wordpress-6.5.2

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

  • /wp-includes/capabilities.php line 488
    					 * @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}_for_{$object_subtype}", $allowed, $meta_key, $object_id, $user_id, $cap, $caps );
    				} else {
    
    					/**
    					 * 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.