Posts Tagged ‘user capability’
Preview others posts without edit
Wednesday, April 11th, 2012You will need to add a new user capability, modify one file from WordPress core and add little piece of code to your theme functions.php file. Are you ready? Let’s go!
delete_users WordPress user capability
Monday, April 2nd, 2012delete_users
capability. Is it enough? No. In order to delete user, you need to select it from user list. Thus, you should have some other user capability. Yes, it is 'list_users'
capability. Without such capability you can not access your blog users list (“Users->All Users” menu item) under single-site WordPress installation and can not apply “Delete” command to selected user. Continue reading to see more detailed description and (if you curious enough) look inside WordPress core source code to know where and how WordPress implements ‘delete_users’ security permission.
delete_themes WordPress user capability
Monday, March 19th, 2012delete_themes
user capability. It is clear from its name, isn’t it? You are right. But it is not full true. It’s useful to know, that if you have not switch_themes
capability under single-site WordPress installation, you can not delete selected theme, even if you click ‘Delete’ command from WordPress interface. Interesting? Continue reading and see more detailed description or (if you curious enough) even look inside WordPress core source code together with me.I found
delete_themes
capability in this WordPress core files:– wp-admin\themes.php;
– wp-admin\network\themes.php;
– wp-admin\includes\class-wp-ms-themes-list-table.php;
– wp-admin\includes\class-wp-themes-list-table.php;
– wp-includes\capabilities.php;
– wp-admin\includes\schema.php.
delete_plugins WordPress user capability
Saturday, March 17th, 2012delete_plugins
WordPress user capability allows user to delete not active plugins. Such user has to have access to the “Plugins” menu at WordPress administrator back-end (requires activate_plugins
capability for that). In order to delete plugin user can use plugin row link, which is shown under each plugin name, or bulk action, applied to the selected set of plugins simultaneously.delete_plugins
capability is used inside these WordPress core files:– wp-admin/plugins.php;
– wp-admin/includes/class-wp-plugins-list-table.php;
– wp-admin/includes/schema.php;
– wp-includes/capabilities.php;
Proceed reading if you wish to look inside WordPress core code and get more details.
User Role Editor 3.5 is published
Sunday, February 19th, 2012
User Role Editor WordPress plugin?
– User Role Editor could be available now for single site administrators (Administrator role) under multi-site environment. You should define special constant in your blog wp-config.php file for that.
– One of “User Role Editor” users with 1100+ sites in the multi-site network reported that URE doesn’t update roles for all sites, but stalls somewhere in the middle. Other network update method is realized as alternative. Due to my tests it works approximately 30 times faster. If you met the same problem, try it. It will be great if you share your experience with me. But be careful. It’s recommended to make 1st try on the backup copy, not on a live site.
– Persian translation is updated.
Go to User Role Editor Change Log for details.
What’s new in version 3.5 of – User Role Editor could be available now for single site administrators (Administrator role) under multi-site environment. You should define special constant in your blog wp-config.php file for that.
– One of “User Role Editor” users with 1100+ sites in the multi-site network reported that URE doesn’t update roles for all sites, but stalls somewhere in the middle. Other network update method is realized as alternative. Due to my tests it works approximately 30 times faster. If you met the same problem, try it. It will be great if you share your experience with me. But be careful. It’s recommended to make 1st try on the backup copy, not on a live site.
– Persian translation is updated.
Go to User Role Editor Change Log for details.
add_users WordPress user capability
Sunday, January 22nd, 2012The only place where you can find ‘add_users’ WordPress user capability in WordPress source code is
/wp-admin/includes/schema.php:
781 | $role->add_cap( 'add_users' ); |
User Role Editor 3.3 is published
Saturday, December 10th, 2011
User Role Editor” WordPress plugin. What’s new in this version?
– New role can be created as a copy of other existing one.
– You can hide/show deprecated capabilties (level_1 – level_10).
– Users with “Administrator” role are not shown to other users with “list_users” capability.
– Plugin data cleanup is added – plugin options will be automatically deleted if you delete plugin via WordPress link.
– Some code enhancements are applied, e.g. optimization and using of WordPress API instead of self-written routine.
I published today version 3.3 of “– New role can be created as a copy of other existing one.
– You can hide/show deprecated capabilties (level_1 – level_10).
– Users with “Administrator” role are not shown to other users with “list_users” capability.
– Plugin data cleanup is added – plugin options will be automatically deleted if you delete plugin via WordPress link.
– Some code enhancements are applied, e.g. optimization and using of WordPress API instead of self-written routine.