fix(users): default center to vip
This commit is contained in:
@@ -19,7 +19,7 @@ if (!function_exists('aksrt_get_user_center_url')) :
|
||||
* @return string
|
||||
*/
|
||||
function aksrt_get_user_center_url(string $tab = ''): string {
|
||||
$tab = sanitize_key($tab ?: 'profile');
|
||||
$tab = sanitize_key($tab ?: 'vip');
|
||||
$aliases = ['assets' => 'credits', 'signin' => 'credits', 'invite' => 'revenue', 'promotion' => 'revenue'];
|
||||
$tab = $aliases[$tab] ?? $tab;
|
||||
$path_tab = $tab === 'credits' ? 'balance' : $tab;
|
||||
|
||||
Reference in New Issue
Block a user