Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #847712

    Hi,

    users with the role “author” can’t see the Enfold shortcode button in the WP editor (posts). I don’t know why.

    Best regards
    David

    • This topic was modified 7 years, 2 months ago by DDamjanovic.
    #848157

    Hey DDamjanovic,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Best regards,
    John Torvik

    #849041
    This reply has been marked as private.
    #849375

    Hi,

    I have checked your site closer and WordPress roles are not defined by the theme and instead by WordPress itself. I suggest asking those questions in the WordPress forum in the future.
    However, here you can find some more general information about this topic here:
    https://codex.wordpress.org/Roles_and_Capabilities
    Adding custom roles:

    You could also use a plugin to customize user roles:

    Best regards,
    John Torvik

    #854857

    Hi John,

    what’s the name of the custom capability?

    Best regards
    David

    #855834

    Hi,
    Sorry, I don’t understand your question, could you elaborate a little more please.

    Best regards,
    Mike

    #857107

    Hi Mike,

    the Enfold shortcode button in posts should bei visible for authors, too. Not only for admins. So we have to register a custom capability in User Role Editor.

    Best regards
    David

    #857804

    Hi,

    The shortcode wand will only display for users that can “edit_posts”. The author role doesn’t have this capability by default.

    // https://codex.wordpress.org/Roles_and_Capabilities#edit_posts

    Best regards,
    Ismael

    #858277

    Hi Ismael,

    authors can “edit_posts” by default!

    Best regards
    David

    #858430

    Hi,

    Ah yes. The user should be able to “edit_pages” as well. This is the condition before rendering the shortcode wand button.

    if ( current_user_can('edit_posts') &&  current_user_can('edit_pages') && self::$count == 0)  
    

    Best regards,
    Ismael

    #860129

    Thank you, resolved.

    #860431

    Hi,

    Glad we could help. Let us know if you need anything else. :)

    Best regards,
    Ismael

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Author rights for shortcode button in WP editor’ is closed to new replies.