Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

User Role Permissions (Don't want Photo Seller user to be Admin)

by

Tips and Tricks HQ Support Portal › Forums › WP Photo Seller › User Role Permissions (Don't want Photo Seller user to be Admin)

Tagged: User Role Permissions

  • This topic has 5 replies, 3 voices, and was last updated 7 years ago by Blake.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • March 10, 2018 at 9:04 am #14756
    RickM
    Member

    Hi

    I am a WordPress Admin and I want my client to be able to access all Photo Seller functions without being an Admin themselves.

    If I make my client an Editor (or anything less) they cannot access WP Photo Seller.

    Is there a solution to this please?

    March 11, 2018 at 7:14 am #77444
    Peter
    Member

    Hi,

    Yes there is a filter you can use.

    Put the following in your theme’s functions.php

    add_filter("wpps_menu_capability", "wpps_change_mgmt_permissions", 10, 1);
    function wpps_change_mgmt_permissions($permission){
    return "publish_pages";
    }

    March 11, 2018 at 10:05 am #77445
    RickM
    Member

    Thanks Peter – worked like a charm ;)

    April 11, 2018 at 10:32 pm #77446
    Blake
    Member

    Hi,

    Thanks for the above answer, it is very helpful, but I was wondering if/how I could choose which role(s) I wish to use the plugin.

    I use the User Role Editor plugin on my site. Is there a “capability” I can add to my chosen roles? If I do it this way will I still need the above code in the functions.php?

    Thanks

    April 12, 2018 at 1:35 am #77447
    Peter
    Member

    Hi,

    If you want to change the role which can access the photo seller plugin you will need to choose a different capability and replace “publish_pages” in the code sample with the new one.

    For a list of roles/capabilities see the following:

    https://codex.wordpress.org/Roles_and_Capabilities

    April 13, 2018 at 12:01 am #77448
    Blake
    Member

    Cheers Peter, this is working exactly as I was hoping. I was able to create a new capability called “photo_seller” and apply that to the custom role I created and replace it in the code above. Now only the custom role and Administrator can see the photo seller plugin :)

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ