So, once both editors and administrators can edit pages, your life can be easier checking for those capabilities:. Have a look here for more information on capabilities. Second, rather than being concerned with the user's role but instead focusing on capabilities, you don't have to bother with doing things like the problem asked about in the original question which is checking if the user is an administrator OR an editor.
For example:. While checking against a role in place of a capability is supported in part, this practice is discouraged as it may produce unreliable results. Brief: The administrator is found, but if we push editor the administrator is as well found. So we just let the administrator pass through and identify the editor only. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Learn more. If the current user is an administrator or editor Ask Question. Asked 7 years, 9 months ago. Active 1 year, 5 months ago. Viewed k times. How can I check to see if the current logged-in user is an administrator or an editor? Improve this question. Peter Mortensen 2 2 silver badges 9 9 bronze badges.
Undo and Redo : Undo an action, or redo an undone action. Settings : Display or hide the Page and Block Settings sidebar menu. Options : Opens View options, Editor style, and additional tools. Settings Icon. Global Styles Icon. Click here to learn more about changing Likes and Sharing options across your site. Jetpack Icon.
Adding new blocks. Shortcut to add a block. To enable the most used blocks category, follow these steps: Click the ellipses icon the three dots in the top right corner of the editor screen. Choose Preferences. Check the box next to Show most used blocks. Show most used blocks. Most Used Blocks Category. Moving blocks. To access List View , click the icon that looks like three horizontal lines above each other at the top left of your screen. Paragraph block toolbar.
Image block toolbar. List block toolbar. Hide Block Settings closes the settings menu. Duplicate creates a second block on the same page with the same content. Add to Reusable Blocks allows you to create a block that can be used on other pages that retains the content and styling of the block. Learn more. Group places the block inside of a Group block. Additional block toolbar options. Changing a block type.
The Column block toolbar. Click on the Patterns tab. Click on the pattern you wish to insert and the pattern will be inserted into the page at the position of your cursor. In WordPress the term Editor may refer to a pre-defined user role in the WordPress user management system.
Users with the editor role have the capability to write, edit, publish, and delete posts. This includes posts written by other users. They can also moderate, approve, and delete comments.
Add a comment. Active Oldest Votes. Any text editor notepad should be able to do this. The theme editor should now be available in the Appearance tab. Improve this answer. Juan Serrats 1, 5 5 gold badges 23 23 silver badges 29 29 bronze badges.
Ayodeji A Ayodeji A 41 1 1 bronze badge. If you are at Self-hosted Version At wordpress. There is an editor to edit theme files on the self-hosted version of wordpress.
If you are not at Self-hosted version you can try: — deactivating all plugins to see if this resolves the problem. Take Look What is benifits of WordPress. Core functionality override is possible. No registration with WordPress.
0コメント