Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




get_user_metavalues [ WordPress Function ]

get_user_metavalues ( $ids )
Parameters:
  • (array) $ids User ID numbers list.
Returns:
  • (array) of arrays. The array is indexed by user_id, containing $metavalues object arrays.
Defined at:



Perform the query to get the $metavalues array(s) needed by _fill_user and _fill_many_users

Source


<?php
function get_user_metavalues($ids) {
    
_deprecated_function__FUNCTION__'3.3' );

    
$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;
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics