I used following code
function userinfo_global() {
global $users_info;
wp_get_current_user();
}
add_action( 'init', 'userinfo_global' );
in a file users.php
, this file are call in inside funtions.php
.
in template file I have <?php echo $users_info->user_firstname; ?>
, but no working..
I want to do global wp_get_current_user();
You know why?