How to get user ID during registration and add it to a custom table
I am trying to get the user ID during registration and automatically add that ID to my custom table. I am using the … Read more
I am trying to get the user ID during registration and automatically add that ID to my custom table. I am using the … Read more
I am currently developing a plugin and I am trying to make use of the $current_user global. class Something { public function __construct() … Read more
Each user in system has meta key called points I need to get top 10 users (highest points) How I can do this … Read more
So far I have tried these three options and all 3 of them are not working. Option 1 $options = array( ‘meta_key’ => … Read more
I found a code scrap on the internet which uses if($user_id) { instead of if ( is_user_logged_in() ) { to check if the … Read more
For some reason this is not working for me đ $get_members = array( ‘blog_id’ => $GLOBALS[‘blog_id’], ‘role’ => ‘sm_flagar’, ); $blogusers = get_users($get_members); … Read more
So our website has about 20k “collaborators” type of users and we’d like to stop loading all of them on the select box … Read more
I want to make an specific theme for non logged in users, but I don´t know how to make the function or plugin … Read more
I’m trying that : <?php $phone = get_user_meta($current_user->ID,’phone_number’,true); echo $phone; ?> But it’s not working 5 Answers 5 <?php // number 9 will … Read more
I was trying this code to get current user info, but showing nothing. My WordPress version is 3.3.1 <?php wp_get_current_user(); /** * @example … Read more