feat(users): default user center to VIP
This commit is contained in:
@@ -280,7 +280,9 @@ if (!function_exists('aksrt_user_center_resolve_tabs')) {
|
||||
];
|
||||
$tabs = aksrt_normalize_user_center_tabs($tabs);
|
||||
$keys = array_keys($tabs);
|
||||
$default = in_array('profile', $keys, true) ? 'profile' : ($keys[0] ?? 'profile');
|
||||
$default = in_array('vip', $keys, true)
|
||||
? 'vip'
|
||||
: (in_array('profile', $keys, true) ? 'profile' : ($keys[0] ?? 'profile'));
|
||||
$active = isset($_GET['tab']) ? sanitize_key(wp_unslash($_GET['tab'])) : $default;
|
||||
if ('signin' === $active || 'assets' === $active) {
|
||||
$active = 'credits';
|
||||
|
||||
Reference in New Issue
Block a user