• Resolved roberton1973

    (@roberton1973)


    Hello everything.

    I am in a full creative period and i have a lot of question about my new project that should be live hopefully for this saturday.

    I would like to show and give the permission to use The description profile in the header only to Administrator. Is there a way?

    Thanks once again.

    Regards.

    P.S. If in a few months i will update to the pro version, all the modify and the customer that i have will stay without problem or something can be lost? (of course i will made backup the instant before to upgrade)

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @roberton1973

    Did you mean you want an administrator to edit the description of all profiles? Or do you want to allow administrators’ profiles to have a description enabled for them only?

    UM doesn’t have a pro version. We only have premium extensions. Please see: https://ultimatemember.com/extensions/

    For pre-sale questions, you can contact us via our website: https://ultimatemember.com/contact/sales

    Regards,

    Thread Starter roberton1973

    (@roberton1973)

    Hi.

    No. I mean That only the administrator or Editor, have the field user description available. To all other users should not be visible. And why the administrators are not visible in my member directory if i login with my user account, instead of a second administrator (my wife) account? Is also there some setting that i did not saw?

    Thanks

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @roberton1973

    Please try this code snippet to make the description/bio visible to users wotj administrator and editor roles:

    add_filter("um_shortcode_args_filter","um_101821_display_description");
    function um_101821_display_description( $args ){
        
        if( ! in_array( um_user("role"), array( 'administrator', 'editor' ) ) ){
            $args['show_bio'] = 0;
        }
    
        return $args;
    }

    You can add the code to your theme/child-theme’s functions.php file or use the Code Snippet plugin to run the code.

    Regards,

    Thread Starter roberton1973

    (@roberton1973)

    Hi.

    Great it works also this. Many thanks

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Thanks for letting us know.

    Regards,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Show user description in profile header only to Administrator or Editor’ is closed to new replies.