Switch language

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




get_users [ WordPress Function ]

get_users ( $args = array() )
Parameters:
  • (array) $args Optional.
Uses:
  • $wpdb
  • WP_User_Query
Returns:
  • (array) List of users.
Defined at:



Retrieve list of users matching criteria.

Source


<?php
function get_users$args = array() ) {

    
$args wp_parse_args$args );
    
$args['count_total'] = false;

    
$user_search = new WP_User_Query($args);

    return (array) 
$user_search->get_results();
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



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