WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 1173 | * - `update_comment_metadata_cache` |
| 1174 | * - `update_term_metadata_cache` |
| 1175 | * - `update_user_metadata_cache` |
| 1176 | * |
| 1177 | * @since 5.0.0 |
| 1178 | * |
| 1179 | * @param mixed $check Whether to allow updating the meta cache of the given type. |
| 1180 | * @param int[] $object_ids Array of object IDs to update the meta cache for. |
| 1181 | */ |
| 1182 | $check = apply_filters( "update_{$meta_type}_metadata_cache", null, $object_ids ); |
| 1183 | if ( null !== $check ) { |
| 1184 | return (bool) $check; |
| 1185 | } |
| 1186 | |
| 1187 | $cache_group = $meta_type . '_meta'; |
| 1188 | $non_cached_ids = array(); |
| 1189 | $cache = array(); |
| 1190 | $cache_values = wp_cache_get_multiple( $object_ids, $cache_group ); |
| 1191 | |