Uses
Uses | Description |
---|---|
wp-includes/functions.php: _deprecated_function() | Mark a function as deprecated and inform when it has been used. |
wp-includes/meta.php: update_meta_cache() | Updates the metadata cache for the specified objects. |
This function has been deprecated.
Perform the query to get the $metavalues array(s) needed by _fill_user and _fill_many_users
(array) (Required) User ID numbers list.
(array) of arrays. The array is indexed by user_id, containing $metavalues object arrays.
File: wp-includes/deprecated.php
function get_user_metavalues($ids) { _deprecated_function( __FUNCTION__, '3.3.0' ); $objects = array(); $ids = array_map('intval', $ids); foreach ( $ids as $id ) $objects[$id] = array(); $metas = update_meta_cache('user', $ids); foreach ( $metas as $id => $meta ) { foreach ( $meta as $key => $metavalues ) { foreach ( $metavalues as $value ) { $objects[$id][] = (object)array( 'user_id' => $id, 'meta_key' => $key, 'meta_value' => $value); } } } return $objects; }
Version | Description |
---|---|
3.3.0 | This function has been deprecated. |
3.0.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_user_metavalues