Insert Shortcode button is only visible to Admins (hidden for editors and authors)

Why the button is only available to Administrators

Since version 5.0.7 minimum required user capability for the “Insert Shortcode” button has been changed from edit_posts to manage_options, which means only users with this capability can see and use the button. Usually, this capability is only given to the Super Admin and Admin account types.

Important note

This change was made to improve plugin security. You can do almost everything with shortcodes. Shortcodes Ultimate allows you to load custom PHP scripts, display administrator’s email address and much more. That’s why regular users are not allowed to use it.

How to enable the “Insert Shortcode” button

If you want to allow Editors or other non-admin users to use the “Insert Shortcode” button, add the following snippet to the end of the functions.php file of your active theme.

We do not recommend doing this!

Enable for Editors

/**
 * Required capability to access the 'Insert Shortcode' button.
 * User roles and custom capabilities are allowed.
 */
$su_generator_capability = 'edit_others_posts';

update_option( 'su_option_generator_access', $su_generator_capability, false );

Enable for Editors and Authors

/**
 * Required capability to access the 'Insert Shortcode' button.
 * User roles and custom capabilities are allowed.
 */
$su_generator_capability = 'edit_posts';

update_option( 'su_option_generator_access', $su_generator_capability, false );

Further reading: WP Codex: Roles and Capabilities.