update_{$meta_type}_metadata_cache

update_{$meta_type}_metadata_cache

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

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('update_{$meta_type}_metadata_cache') is found 1 times:

  • /wp-includes/meta.php line 1152
    	 *
    	 * @param mixed $check      Whether to allow updating the meta cache of the given type.
    	 * @param int[] $object_ids Array of object IDs to update the meta cache for.
    	 */
    	$check = apply_filters( "update_{$meta_type}_metadata_cache", null, $object_ids );
    	if ( null !== $check ) {
    		return (bool) $check;
    	}
    
    	$cache_key      = $meta_type . '_meta';
    	$non_cached_ids = array();