WordPress.org

Ready to get started?Download WordPress

Forums

Co-Authors Plus
[resolved] Hide Create Profile from the User menu (4 posts)

  1. Robert Dall
    Member
    Posted 1 year ago #

    I am not sure why "create profile" was added right beside the "edit" button in the list view of the users.

    I would like to have the ability to turn them off so that users of the site don't try to edit their user profile which is different the guest profile.

    I though I could just hide the button via some admin css alteration but now some users have the "create profile" and others don't.

    http://wordpress.org/extend/plugins/co-authors-plus/

  2. Robert Dall
    Member
    Posted 1 year ago #

    I did figure it out.

    the css the references the .edit-guest-author in the admin starts as .create-guest-author.

    So to hide both of them you need to but something like this in your function file to hide the option in list user admin screen.

    function hide_guest_author() {
       echo '<style type="text/css">
               .edit-guest-author { display:none; }
               .create-guest-author { display:none; }
             </style>';
    }
    
    add_action('admin_head', 'hide_guest_author');

    I'd still like to see a check box in the setup of this plugin for this option but neither the less I figured it out.

  3. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    You can disable guest author profiles entirely by adding this to your there's functions.php file:

    add_filter( 'coauthors_guest_authors_enabled', '__return_false' );

    We have an issue filed for the next release to improve the UX for creating a profile too, so it's less confusing.

  4. Robert Dall
    Member
    Posted 1 year ago #

    Hi Daniel

    As it turns the client might have use for the guest author. But they did agree that the create profile button so similar to the edit button could be very confusing.

    Thanks for the quick reply :-) I look forward to the next release.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic