fix: expose affiliate promotion center

This commit is contained in:
kate522 committed 2026-08-16 19:33:42 +08:00
1 parent 99db790a6f
commit f70eca09d1
3 files changed
+26 -3

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ if (!function_exists('aksrt_get_user_center_url')) :
*/
function aksrt_get_user_center_url(string $tab = ''): string {
$tab = sanitize_key($tab ?: 'vip');
$aliases = ['assets' => 'credits', 'signin' => 'credits', 'invite' => 'revenue', 'promotion' => 'revenue'];
$aliases = ['assets' => 'credits', 'signin' => 'credits', 'invite' => 'promotion', 'promotion' => 'promotion'];
$tab = $aliases[$tab] ?? $tab;
$path_tab = $tab === 'credits' ? 'balance' : $tab;
return get_option('permalink_structure')