wc_current_user_is_active() WC 3.4.0
Update when the user was last active.
Хуков нет.
Возвращает
Null. Ничего.
Использование
wc_current_user_is_active();
Список изменений
С версии 3.4.0 | Введена. |
Код wc_current_user_is_active() wc current user is active WC 5.0.0
function wc_current_user_is_active() {
if ( ! is_user_logged_in() ) {
return;
}
wc_update_user_last_active( get_current_user_id() );
}