{"id":33813,"date":"2019-03-01T09:28:03","date_gmt":"2019-03-01T09:28:03","guid":{"rendered":"http:\/\/getshortcodes.com\/?post_type=docs&#038;p=33813"},"modified":"2023-01-20T09:04:51","modified_gmt":"2023-01-20T09:04:51","slug":"insert-shortcode-button-is-only-visible-to-admins-hidden-for-editors-and-authors","status":"publish","type":"docs","link":"https:\/\/getshortcodes.com\/docs\/insert-shortcode-button-is-only-visible-to-admins-hidden-for-editors-and-authors\/","title":{"rendered":"Insert Shortcode button is only visible to Admins (hidden for editors and authors)"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"why-the-button-is-only-available-to-administrators\">Why the button is only available to Administrators<\/h2>\n\n\n\n<p>Since version 5.0.7 minimum required user capability for the \u201cInsert Shortcode\u201d button has been changed from&nbsp;<code>edit_posts<\/code>&nbsp;to&nbsp;<code>manage_options<\/code>, 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 user roles.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"important-note\">Important note<\/h2>\n\n\n\n<p>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\u2019s email address and much more. That\u2019s why regular users are not allowed to use it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-to-enable-the-insert-shortcode-button\">How to enable the <em>Insert Shortcode<\/em> button<\/h2>\n\n\n\n<p>If you want to allow Editors or other non-admin users to use the \u201cInsert Shortcode\u201d button, add the following snippet to the end of the&nbsp;<code>functions.php<\/code>&nbsp;file of your active theme.<\/p>\n\n\n\n<p class=\"has-black-color has-yellow-background-color has-text-color has-background\">We do not recommend doing this!<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"enable-for-editors\">Enable for Editors<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Navigate to <em>Dashboard > Shortcodes > Settings > Advanced settings<\/em>;<\/li>\n\n\n\n<li>Find the <em>Required user capability<\/em> field;<\/li>\n\n\n\n<li>Replace <em>manage_options<\/em> with <em>edit_others_posts<\/em>;<\/li>\n\n\n\n<li>Click the <em>Save Changes<\/em> button.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"enable-for-editors-and-authors\">Enable for Editors and Authors<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Navigate to <em>Dashboard > Shortcodes > Settings > Advanced settings<\/em>;<\/li>\n\n\n\n<li>Find the <em>Required user capability<\/em> field;<\/li>\n\n\n\n<li>Replace <em>manage_options<\/em> with <em>edit_posts<\/em>;<\/li>\n\n\n\n<li>Click the <em>Save Changes<\/em> button.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"links\">Links<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/codex.wordpress.org\/Roles_and_Capabilities\">WP Codex: Roles and Capabilities<\/a><\/li>\n<\/ul>\n","protected":false},"featured_media":0,"template":"","docs_category":[22],"class_list":["post-33813","docs","type-docs","status-publish","hentry","docs_category-troubleshooting"],"_links":{"self":[{"href":"https:\/\/getshortcodes.com\/api\/wp\/v2\/docs\/33813","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/getshortcodes.com\/api\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/getshortcodes.com\/api\/wp\/v2\/types\/docs"}],"wp:attachment":[{"href":"https:\/\/getshortcodes.com\/api\/wp\/v2\/media?parent=33813"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/getshortcodes.com\/api\/wp\/v2\/docs_category?post=33813"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}