mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Allow um_show_content to swap profile id
This commit is contained in:
@@ -547,9 +547,16 @@ class UM_Shortcodes {
|
|||||||
$a = shortcode_atts( array(
|
$a = shortcode_atts( array(
|
||||||
'roles' => '',
|
'roles' => '',
|
||||||
'not' => '',
|
'not' => '',
|
||||||
|
'is_profile' => false,
|
||||||
), $atts );
|
), $atts );
|
||||||
|
|
||||||
um_fetch_user( $user_ID );
|
if( $a['is_profile'] ){
|
||||||
|
um_fetch_user( um_profile_id() );
|
||||||
|
}else{
|
||||||
|
um_fetch_user( $user_ID );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$current_user_role = um_user('role');
|
$current_user_role = um_user('role');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user