wpmem_is_user_activated()

Description

Checks if a user is activated when moderated registration is used.

Parameters

$user_id
(int) (optional) The user ID. If not ID is passed, the current user ID will be used.

Return Value

(boolean) Returns true if user is activated, otherwise false.

Examples

[snippet slug=wpmem_is_user_activated lang=php]

Changelog

Introduced in version 3.1.7
Added as an alias of WP_Members_Users::is_user_activated() in 3.2.3

Source

wpmem_is_user_activated() is located in /includes/api-users.php.