feat(users): default user center to VIP
This commit is contained in:
1 parent
6aed242a5a
commit
a00a04287d
1 file changed
+3
-1
@@ -280,7 +280,9 @@ if (!function_exists('aksrt_user_center_resolve_tabs')) {
|
|||||||
];
|
];
|
||||||
$tabs = aksrt_normalize_user_center_tabs($tabs);
|
$tabs = aksrt_normalize_user_center_tabs($tabs);
|
||||||
$keys = array_keys($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;
|
$active = isset($_GET['tab']) ? sanitize_key(wp_unslash($_GET['tab'])) : $default;
|
||||||
if ('signin' === $active || 'assets' === $active) {
|
if ('signin' === $active || 'assets' === $active) {
|
||||||
$active = 'credits';
|
$active = 'credits';
|
||||||
|
|||||||
Reference in new issue
Block a user