Viewing 15 posts - 1 through 15 (of 57 total)
  • Author
    Posts
  • #2043
    jawad
    Participant

    Hi Vladimir,

    Great plugin. I purchased the Pro version after our chat on the free plugin. I am liking the Admin Menu Access.

    I have a query regarding the WordPress Dashboard page that is shown upon login. Is it possible to hide some of these boxes for specific user role?

    I am running WooCommerce and I do not want the staff knowing the totals of the month etc, hence I would like to hide ‘WooCommerce Status’ also I want to hide default boxes like ‘At a glance’ and ‘Activity’.

    Let me know if this is possible.

    Many Thanks,
    Jawad

    #2045
    Vladimir
    Keymaster

    Hi Jawad,

    Thanks for the good feedback.

    You may use “Meta boxes access” add-on:

    Block meta boxes for role


    Do not forget “to show available meta boxes” to this add-on 1st – visit ‘Dashboard’ page in order add-on may see what meta boxes are currently available.

    #2047
    jawad
    Participant

    Hi Vladimir,

    Thanks for that, I will try this. Also, is it possible to block plugin notification which appear at the top?

    Many Thanks,
    Jawad

    #2049
    jawad
    Participant

    Hi again,

    Also, I cannot see these option in Meta Boxes module, how do I disable some of these as well?

    https://gyazo.com/2ef264b14719b6d91681a605d8d36dd2

    Many Thanks,
    Jawad

    #2050
    Vladimir
    Keymaster

    Hi,

    Did you open Meta Boxes after you visited this ‘edit product’ page?

    #2051
    jawad
    Participant

    Hi Vladimir,

    Thanks for your reply. Yes, I visited the page. It is the regular WooCommerce Products page: /wp-admin/edit.php?post_type=product

    I am trying to hide some of the screen option on this page, but these do not appear in the Meta Box module.

    Many Thanks,
    Jawad

    #2052
    Vladimir
    Keymaster

    Jawad,

    I understood now.
    It’s a products list page. Screen options here are not related to the meta boxes. These options are table columns. It’s not possible to hide them with current version of URE currently. I will look what it’s possible to do with it.

    #2053
    jawad
    Participant

    Hi Vladimir,

    Thanks for looking into it!

    1) Also, did you check my screenshot, there is a plugin notification – is it possible to disable these from appearing in the first place or do the users have to ‘dismiss’ them to get rid of it.

    2) Also, how do I stop users from ‘Add Product’ in WooCommerce?

    Many Thanks,
    Jawad

    #2054
    Vladimir
    Keymaster

    1) Admin notices – not so fast. I’m working on the answer currently.

    2) You may turn ON this option ‘Activate “Create” capability for posts/pages/custom post types”. ‘create_posts’, ‘create_pages’, ‘create_products’ capabilities will be appear in the User Role Editor. Add them to the roles which should add posts, pages, products and other registered custom post types. Role without ‘create_products’ capability will can not add new product – just edit the existing one.

    #2055
    jawad
    Participant

    Hi again,

    Cool thanks got it working!

    I also enabled ‘create_shop_orders’ but when I go to Add Order page it says I do not have sufficient privilege.

    Does Creating Order need additional capabilities?

    Many Thanks,
    Jawad

    #2056
    Vladimir
    Keymaster

    Yes, ‘edit_shop_orders’ is a required one.

    #2057
    jawad
    Participant

    Hi again,

    1) I have ‘edit_shop_order’ and ‘edit_shop_orders’ both ticked but still cannot access page? Please see below my current setup:

    https://gyazo.com/8c1cb8fe2209e325f7698e10ee4f86b0

    2) Also what is the difference between the two? I see this with other capabilities as well,

    ‘delete_product’ , ‘delete_products’ / ‘edit_product’ , ‘edit_products’ – they seem similar?

    Many Thanks,
    Jawad

    #2059
    Vladimir
    Keymaster

    About blocking admin notices:

    Remove admin notices

    #2060
    Vladimir
    Keymaster

    Jawad,

    1) Check if there are no any restrictions set for this user at his ‘Edit posts restrictions’ section.

    2) ‘edit_post’, ‘delete_post’ are so called meta capabilities which are mapped by WordPress to the real user capabilities ‘edit_posts’, ‘edit_others_posts’, etc.
    For example you check if user can edit the post. If it’s his post, it’s enough to have ‘edit_posts’. Then if this post is published, it’s needed to have ‘edit_published_posts’.
    That is for 1 ‘edit_post’ meta capability 2 real capabilities are required. In case user is not an author of this post, WordPress will check if user has ‘edit_others_posts’, etc.
    Look at
    wp-includes/capabilities.php map_meta_cap() function for more details.

    There is no need to add meta capabilities directly to the roles by my opinion. But WooCommerce makes this.

    #2062
    jawad
    Participant

    Hi Vladimir,

    Wow – thanks for releasing such a quick fix to hide Admin notices, it works brilliantly!

    1) When you said ‘Edit posts restrictions’ did you mean enable ‘edit_posts’ and ‘create_posts’ capabilities?

    When I go to create order – I see this PHP error message?

    
    Notice: Undefined index: id in /wp-content/plugins/user-role-editor-pro/includes/pro/classes/meta-boxes.php on line 46
    
    Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/user-role-editor-pro/includes/pro/classes/meta-boxes.php:46) in /wp-includes/option.php on line 820
    
    Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/user-role-editor-pro/includes/pro/classes/meta-boxes.php:46) in /wp-includes/option.php on line 821

    2) I am not sure I quite understand. But, if I enable ‘delete_product’ should I also enable ‘delete_products’ or do they affect different capabilities?

    Many Thanks,
    Jawad

Viewing 15 posts - 1 through 15 (of 57 total)
  • You must be logged in to reply to this topic.