Get user status using user id?

[ad_1]

Hi @samuelashbrook,

Please find the following constant

const APPROVED = 1;
const PENDING = 0;
const DENIED = - 1;
UR_Admin_User_Manager::APPROVED
UR_Admin_User_Manager::DENIED
UR_Admin_User_Manager::PENDING

You can write code using these constants to get the user status. If you prefer to pull data from the database, use the following code.

$user_status = get_user_meta( $this->user->ID, 'ur_user_status', true );

Regards!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer