Description
Dectivates a user when moderated registration is used.
Parameters
$user_id
(int) (optional) The user ID. If no ID is passed, the current user ID will be used.
Return Value
(void)
Notes
- Triggers wpmem_user_deactivated action
- Also see wpmem_activate_user()
Examples
Changelog
- Introduced in version 2.7.1
- 3.2.4 Renamed from wpmem_a_deactivate_user().
- 3.3.0 Moved to user API
Source
wpmem_deactivate_user() is located in /includes/api-users.php.