Posts Tagged ‘WordPress’

WordPress 3.3 Sonny Welcome

Wednesday, December 14th, 2011

WordPress 3.3 Sonny Welcome

Welcome WordPress 3.3

Good news: After solid testing (4 beta versions and 3 release candidates) WordPress 3.3. “Sonny” is available for download.

As for me, it was ready for use in production environment from Beta 2. Yes, I installed and used WordPress 3.3 here at shinephp.com from the Beta 2. It helped me to resolve the issue, which I met from time to time under previous WordPress versions: when some large (2-3 screens) and complex (images, links inside) post content was not shown, only title was seen on the page. I was very happy, when tried WordPress 3.3. Beta 2 and discovered that such weird thing was dissapeared. That’s a miracle! So, welcome WordPress 3.3. I like you, in general.
I wrote a few words about main new features of this WordPress version here. In short, there are drag-and-drop uploader, hover menus for the navigation, the new toolbar, improved co-editing support, enhanced context help system, etc.

Read the rest of this entry

activate_plugins WordPress capability

Saturday, November 26th, 2011

activate plugins

activate_plugins

What is 1st WordPress user permissions system capability if we sort such list in alphabet order? Yes, activate_plugins one. Information about it at WordPress Codex is very brief: “Allows access to Administration Panel options: Plugins”. But according its name this capability should allow at least activate plugins and may be something more. Where we can get right information about WordPress if not at WordPress’s core source code? I made little investigation and wish to share with you its results in this post.
Summary: activate_plugins capability on the top of the mountain really gives user access to “Plugins” and “Installed Plugins” menu items of WordPress admin back-end menu system and lets him activate/deactivate plugins one by one or applying bulk action to the set of selected plugins.
Let’s look together under the WordPress hood and see on examples of WordPress 3.3 core source code how it’s realized.
Read the rest of this entry

WordPress admin menu permissions

Monday, November 14th, 2011

WP capabilities for admin menu access

WP admin menu permissions


WordPress admin menu items access is restricted by special permissions or so-called capabilities. When you build new WordPress user role, it’s useful to know what menu item is restricted by what capability. It is necessary knowledge to add/remove admin submenus from user role via adding/removing correspondent capability.

If you have some PHP knowledge and you are curious enough, you will find the most part of WordPress admin menu definition, including its capabilities, at WordPress core source code. But what to do, if you are not PHP developer? Even me caught myself that it is too tedious open wp-admin/menu.php file and find right piece of code every time in order to get needed capability name for the admin menu item to use it in own plugin or answer on plugin’s user or site visitor questions. Why do not document this? That’s the reason of this post was written. I hope it will be useful not for me only.

Look at the table below for the list of WordPress 3.3 admin menu items capabilities.

Read the rest of this entry

WordPress 3.3 – what’s new?

Tuesday, October 11th, 2011

WordPress 3.3 Beta 1

WordPress 3.3 Beta 1


Congratulations!
WordPress.org announced that WordPress version 3.3 Beta 1 is available.
Do not hurry to grab it and update your production blog. Beta 1 is published for testing purposes only. It still can have critical bugs, even if it looks stable enough. So beta-testers are welcome! If you have test playground for new WordPress toy – just install it there and enjoy.
You can download WordPress 3.3 Beta 1 here.
Download of WordPress 3.3 Beta 2 is available here.
Download of WordPress 3.3 Beta 3 is available here.
Download of WordPress 3.3 Beta 4 is available here.
Try the latest Beta, test it, find bugs and report WordPress community and developers team.
Read the rest of this entry

Lock s2Member roles during plugin update

Thursday, August 18th, 2011

Do not reset s2Member WordPress Plugin Roles

s2Member Roles

Data: You use s2Member WordPress plugin from PrimoThemes successfully.
For those who don’t know, this plugin supports powerful membership capabilities, protect members only content, integrates with PayPal, supports recurring billing, custom pages for registration, etc. It is a right tool if you wish to sell some of your blog content to your subscribers or just restrict access to some posts, pages or downloads.
Finally, you know s2Member and WordPress good enough to make your own changes to its user permissions systems. You edited one of S2member created user roles: “s2Member Level 1″, “s2Member Level 2″, “s2Member Level 3″ or “s2Member Level 4″ and you added some new capabilities to it. You can use User Role Editor WordPress plugin, which helps you make such changes very easy.
Problem: You lose all your custom changes to the s2Member user roles after every s2Member plugin update. What’s going wrong? What to do? Who can help?
Decision: Read this post to know how to leave your customized s2Member user roles unchanged.
Read the rest of this entry

Limit comments moderation

Thursday, August 4th, 2011

Limit comments moderation

Limit comments moderation

Who can moderate post comments in WordPress? There are: post author, editors, administrators, that is all users who can edit post for which the comment is sent. Let’s suppose you don’t wish that your authors and editors have ability to moderate comments. How to achieve that? If you look at WordPress capabilities list you find fast the ‘moderate_comments’ capability. So quick decision is to turn off ‘moderate_comments’ capability for the ‘Author’ and ‘Editor’ roles. It’s simple task with the help of User Role Editor WordPress plugin. But you will discover soon that it’s not enough. Why?
Read the rest of this entry

Hide draft and pending posts from other authors

Friday, July 29th, 2011

Hide drafts and pending posts

Hide drafts and pending posts

You don’t like that contributors and authors of your multi-authored WordPress blog see not published post titles of other users. You wish to hide from user all posts in the ‘draft’ or ‘pending’ states. You are in the right place. Let’s see how to achieve this.
WordPress has filter ‘views_edit_post’ where you can modify the list of views available to the user when he clicks ‘Posts” or ‘All Posts’ links at his dashboard.
Read the rest of this entry