Give Editor Access to Custom Theme Options

The problem is that the default Editor role does not have enough capabilities to change theme options. You are allowing users with ‘moderate_comments’ capabilities to view the page. That in itself is not enough. When the user attempts to update, it fails because the user does not have the proper capabilities, hence the ‘Cheatin’ uh?’ … Read more

How to hide a HTML element based on user role

You could use something like this if you have jquery included in your page: <?php if ( is_super_admin() ) { ?> <script type=”text/javascript”> $( document ).ready(function() { $(“#IDofDivHoldingUserTopBar”).css(“display”, “none”); // ID of user top bar // ……………………….. OR $(“.ClassofDivHoldingUserTopBar”).css(“display”, “none”); // class of user top bar }); </script> <?php } ?>

User restricted only show posts assigned to current user

You search certainly something like Members plugin. It allow you create a custom Role and You can make your site and its feed completely private if you want or just one or 2 posts. Its like you want. Or Manually, you can add new roles: function add_role() { add_role( ‘private_user’, “private user”,array( ‘is_able_to_read_private_page’=> true, ‘read’=> … Read more

Updater user with multiple roles

Roles are assigned one per user. That’s default for WordPress. Instead of using roles, I recommend using capabilities to keep track of different types of users. You can assign multiple capabilities per user and set some default capabilities for the role. See: add_cap() and remove_cap()

Force modified contributor role to be re-approved on edit?

you can use ‘wp_insert_post_data’ hook to check if the user is not an admin, and if the post status is allready “published” change it to “pending”: add_filter(‘wp_insert_post_data’,’re_aprove’); function re_aprove($data , $postarr){ global $current_user; get_currentuserinfo(); //check if current user is not admin if (!current_user_can(‘manage_options’)){ if ($data[‘post_status’] = “publish”){ $data[‘post_status’] = “pending”; } } return $data; }

Paypal API and WordPress

Try working through the source code of a plugin such as PayPal Framework. From your question, the WP side is fairly trivial, but you should study general PayPal tutorials to understand the API, for example, here’s the first search result from Google for PayPal API tutorial: Using PayPal’s IPN with PHP Also some additional helpful … Read more