Removing capabilities from cloned admin role

For a list of capabilities by user level, check the Roles and Capabilities Codex page. The capability that would allow a user to change a theme header would probably be edit_theme_options, but I bet it would give your editors more capabilities than just messing with the header, though. It’s hard to say for sure without … Read more

How to create a front facing user sign up, log in and profile pages like FoodGawker.Com [closed]

In another question of yours, you were pointed to the plugin WP Favorite Posts, but you seem to have settled with this premium one from Code Canyon. So, the matter is how to integrate it with a Profile/Registration management plugin, and for that maybe Theme My Login would be a good candidate, as you can … Read more

Show special backend content for certain roles

Possible Reasons – current_user_can() function needs an input of a capability not user role, though it works sometime but we should not use user role as a input to this function. you’re passing the subscriber object to function which is a lowest possible role we can have on WordPress. That’s why !current_user_can(‘subscriber’) makes it unavailable … Read more

Is it proper to build a site supporting blog visitors in WordPress?

Maybe you need to use the WordPress Network feature Documentation of interest: Don’t Use WordPress Multisite Multisite Rationale WordPress Multisite 101 WordPress Multisite 110 EDIT: Some features of WordPress Multisite based on my investigation: 1 Users can register a blog in your site and publish their pages. 2 Users can embed images, audios and videos … Read more

Require Capability to View Woocommerce Product

My guess is that your problem is here: if (is_product_category(‘b2b’)) Taking a look at the Woocommerce Documention for Conditional Tags is_product_category() will return true on product category archives. Therefore, it will never be true on the single product page. What I think you need instead is has_term() which checks a post for a particular term. … Read more

Conditional Tag for Wishlist membership. If the user is added to two levels show particular content

If you’re running the latest version of WishList Member, it now has built-in API functions for stuff like this. Using those, you’d do this: wp_get_current_user(); $gold_sku = 123456789; $silver_sku = 987654321; $user_id = $user->ID; if ( wlmapi_is_user_a_member($gold_sku, $user_id) ) { //Do gold stuff here } elseif ( wlmapi_is_user_a_member($silver_sku, $user_id) ) { //Do silver stuff here … Read more

Subscription list function

If you’d dumped one of your $players you’d have seen the issue: object(WP_User)#126 (7) { [“data”]=> object(stdClass)#129 (10) { [“ID”]=> string(1) “9” [“user_login”]=> string(3) “abc” [“user_pass”]=> string(34) “$P$BmwzlhY1xP6JTBlbWzLPetkx8lB.Zo/” [“user_nicename”]=> string(3) “abc” [“user_email”]=> string(19) “[email protected]” [“user_url”]=> string(0) “” [“user_registered”]=> string(19) “2013-10-04 09:22:08” [“user_activation_key”]=> string(0) “” [“user_status”]=> string(1) “0” [“display_name”]=> string(3) “abc” } [“ID”]=> int(9) // removed … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)