edit-theme-options user capability
‘edit_theme_options’ capability seems to be self-explained. It’s primary purpose is to provide access to WordPress front-end theme options changing.
On practice, if you have ‘edit_theme_options’ capability, then you have access
to the ‘Appearance’ menu at WordPress admin back-end and to its menu items: “Themes” (select a theme for your WordPress front-end) and “Menus” (edit menus supported by your selected theme). Customize theme header image, background color, etc. section and ‘Widgets’ menu items require ‘edit_theme_options’ capability also.
How it is realized? How often and at what places WordPress uses/checks this user capability – ‘edit_theme_options’ in order to decide give current user permission to edit theme options or prohibit access to such functionality? Let’s check this together. We will make a quick look into WordPress version 3.4.2 core source code and comment its related fragments.
Working, working, working… Coding, coding, coding…
Stop! Rest a litle, look around – there is a real life beyond the boring office and amazing, but virtual Internet. Take a minute, book hotels
with a couple of clicks. Fly to old Europe. Rent a car. Visit beautiful historical places. Go for a walk. Sit at the street cafe with a cup of coffee. Enjoy with fresh mountains air and Alps nature. That was my dream for all this year and it will become reality tomorrow. Let me leave you for next 2 weeks. I take a vacation and go to my year 2012 Europe holiday trip: Germany, France, Belgium, Wiesbaden, Constanz, Paris, Mont-Seint-Michel, Gent, Brugge, Frankfurt. Go-go-go!
User Role Editor
User Role Editor
WordPress plugin version 3.8 is published at September 1st, 2012. What’s new?
– Bug fix: Some times URE didn’t show real changes it made to the database. The reason was that direct database update did not invalidate data stored at WordPress cache. Special thanks to Knut Sparhell
for the help with detecting this critical issue.
– WordPress core capabilities are shown separately from capabilities added by plugins and manually.
– If you configured URE to show you ‘Administrator’ role, you will see its capabilities, but you can not exclude any capability from it. I may just add capabilities to the Administrator role now. The reason – Administrator role should have all existing capabilities included.
– Brasilian Portuguese translation is updated.
Published to Pending
What to do if you wish to approve all changes made into published post by their authors? It’s possible by changing post status from ‘Published’ to ‘Pending Review’ automatically. You need just add a piece of code placed below to your current theme
file. It works for users with ‘Author’ role. If you wish to change it, then change ‘author’ in the code to role name you wish to use.
Is that all you need to do? No. You should remove ‘publish_posts’ capability from your users, otherwise user can to publish pending post himself again. Use User Role Editor
plugin for that.
Do you wish to see how does this hack work? Let’s proceed with short video demonstration.
update_core user capability
gives us nothing about update_core capability for WordPress user, except WordPress version of its appearing in the code – 3.0. I suppose according to its name, that
capability is used to decide, if user can update core WordPress file using built-in WordPress upgrade feature or not. What do you think?
Thoughts are just thoughts, while they are not confirmed by practice and strong experiment. Thus, I decided to check this obviouse guess, satisfy my curiosity and investigate, how and for what purpose WordPress uses update_core capability really. Result of my little investigation will be shown to you below.
Social Toolbar WordPress plugin
Every Internet user have a social account. One, two, ten, twenty five… That depends from person’s social activity at the Internet.
Any WordPress blog/site owner have special accounts on Twitter
, etc. to promote there sites.
Thus, having capability of easy showing your visitors your site social channels, enabling visitors to connect to their own social channels in one step with data from your site ready to send – it is a drastic enhancement to site usability, which leads finally to enlargement of traffic, quant of daily visitors, your content quotations at the Internet, that again increases traffic, etc., etc.
There are plenty of different plugins with needed social networking functionality: 440 plugins contain word “social” at description, 334 plugins have word “share” at theirs description. How did I get such data?
Find WordPress plugins
A lot of people, who use WordPress, spend time searching good plugins. I’m one of them. I have a few WordPress sites and use different plugins their. Right place to search plugins is the WordPress plugins repository
. It contains 24 000+ free plugins from hundreds of enthusiastic authors right now. That’s excellent. But that has a drawbacks too. Plugins developers appear and disappear. Every day new guys started new work, but some guys or girls stop it, forever. Thus the list of plugins is overwhelmed by old, outdated code, which is not compatible with the latest version of WordPress.
Did you ever meet with situation, when you searched plugin for your special need at WordPress.org
, digged the Internet by hours, but without any success, and then, some time ago, you accidentally found some post about brilliant professionally made plugin, which sitted silently at WordPress plugins repository long time? Or you found that, what you need eventually, but – how many time did you spend on it?