fix: expose affiliate promotion center
This commit is contained in:
1 parent
99db790a6f
commit
f70eca09d1
3 files changed
+26
-3
No files matched your search
@@ -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')
|
||||
|
||||
Reference in new issue
Block a user