mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
add {nickname} display to menu
This commit is contained in:
@@ -1004,6 +1004,7 @@ if ( ! class_exists( 'um\core\Shortcodes' ) ) {
|
||||
'{display_name}',
|
||||
'{user_avatar_small}',
|
||||
'{username}',
|
||||
'{nickname}',
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -1049,6 +1050,10 @@ if ( ! class_exists( 'um\core\Shortcodes' ) ) {
|
||||
$value = um_user( 'user_login' );
|
||||
}
|
||||
|
||||
if ( $usermeta == 'nickname' ) {
|
||||
$value = um_profile( 'nickname' );
|
||||
}
|
||||
|
||||
/**
|
||||
* UM hook
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user