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

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

  • /wp-includes/meta.php line 1152
    1148
    1149
    1150
    1151
    1152
    1153
    1154
    1155
    1156
    1157
    1158
    *
     * @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();