Forum Replies Created

Viewing 1 replies (of 1 total)
  • I’ve the same problem , and using

    add_action('pre_user_query', 'my_user_query');
    function my_user_query($userquery){
    
    	echo "<div style='margin-top:30px;' class='update-nag'>";
       print_r($userquery);
       echo '</div>';
    }

    to out put the action code, the custom colum not working and it’s sort by user_login , the result as

    WP_User_Query Object ( [results] => [total_users] => 0 [query_fields] => SQL_CALC_FOUND_ROWS wp_users.ID [query_from] => FROM wp_users [query_where] => WHERE 1=1 [query_orderby] => ORDER BY user_login ASC [query_limit] => LIMIT 10 [query_vars] => Array ( [blog_id] => 1 [role] => [meta_key] => [meta_value] => [meta_compare] => [include] => Array ( ) [exclude] => Array ( ) [search] => [orderby] => huodong [order] => ASC [offset] => 0 [number] => 10 [count_total] => 1 [fields] => all_with_meta [who] => ) )

    If anyone has any updates, please post them.

Viewing 1 replies (of 1 total)