Forum Replies Created

Viewing 15 posts - 706 through 720 (of 2,520 total)
  • Author
    Posts
  • in reply to: Need to give plugin developer plugin edit rights #6077
    Vladimir
    Keymaster

    Hi,

    Let me share some info/recommendations.

    When you allow someone to edit PHP code at your site, there is no sense to restrict that person somehow. You have to just trust the developer.
    Having access to arbitrary PHP code execution developer can with just one line of a PHP code wp_insert_user(); create new user with ‘administrator’ role, re-login and get full permissions at the site.

    Any code editing should be done at the stage/development copy of the site.

    In relation to the auto-redirection to dashboard, I suppose that you blocked some admin menu items for this user role via Admin menu access add-on and use ‘Block Not selected’ option. Read more carefully this part of the article.

    in reply to: Content restrictions with shortcodes #6075
    Vladimir
    Keymaster

    Yes, you can, just deactivate plugin, replace files, activate plugin back.

    Btw., did you check if shortcode option is active at URE Settings?
    If plugin was activated locally at this subsite, then you have to check this subsite Settings, not at the network admin.

    Vladimir
    Keymaster

    Is there a way of applying the “Posts Edit Access” feature “”with category/taxonomy ID”” restriction to media files just like it works for pages?

    No, it will not work as you wish.
    Code is built such way, that 1st it defines what posts/pages/CPT are available for editing, only then it extracts the list of attachments for which those posts are parent. Attachments are not processed as an independent post type. So general scheme will not work for them.

    in reply to: View only in Woocommerce #6071
    Vladimir
    Keymaster

    There are no read-only mode in WordPress admin for custom post types including WooCommerce products. The only thing I can offer is to block/hide publishing meta box which contains ‘Update’ button. This way user will can not save any changes even if he/she makes them.
    You can use “Meta boxes access” add-on for this purpose. Scroll to the ‘Product’ section and block ‘Publish (submitdiv)’ meta box for the selected role.

    in reply to: Content restrictions with shortcodes #6070
    Vladimir
    Keymaster

    We have to use a single shortcode block and insert all shortcode content to it, like at the image below:
    user role editor shortcode at Gutenberg block

    in reply to: Content restrictions with shortcodes #6069
    Vladimir
    Keymaster

    I looked at screenshot again. Clarify, do you use 2 different Guttenberg shortcode blocks: one to start [user_role_editor] shortcode and the 2nd to close it [/user_role_editor]?

    in reply to: Content restrictions with shortcodes #6068
    Vladimir
    Keymaster

    Just successfully retested [user_role_editor] shortcode with Gutenberg shortcode block. It works at my test environment. Let’s find a reason why it stopped work for you. Yes, try to deactivate all other plugins and make another test.

    in reply to: Content restrictions with shortcodes #6067
    Vladimir
    Keymaster

    Let me know the result of your investigation. I’m ready to take part in case of any trouble.

    in reply to: Content restrictions with shortcodes #6064
    Vladimir
    Keymaster

    My test shows that your issue probably is not related to the mentioned versions of WP and URE. Shortcodes just work.
    Do you use shortcode with Classic Editor or under Gutenberg? Re-check if some auto-conversion is not took place and ‘[‘ or ‘”‘ symbols were not replaced with come HTML entities, etc.

    in reply to: Including Tablepress in a Role #6060
    Vladimir
    Keymaster

    Unfortunately, GTranslate developer uses ‘administrator’ role to protect its menu item under ‘Settings’ menu. Look at the gtranslate.php file, line #231:

    
    add_options_page(__('GTranslate Options', 'gtranslate'), 'GTranslate', 'administrator', 'gtranslate_options', array('GTranslate', 'options'));
    

    The only way to make possible to add access to this menu item for other roles except ‘administrator’ is to replace ‘administrator’ at this line with ‘manage_options’, or any other user capability suitable for your purpose.

    Vladimir
    Keymaster

    Hi,

    The custom filter ure_attachments_show_full_list helps to resolve this.

    Vladimir
    Keymaster

    Send admin credentials to support [at-sign] role-editor.com
    I will look how to make needed settings.

    in reply to: Including Tablepress in a Role #6053
    Vladimir
    Keymaster

    “Admin menu” shows menu items available to the selected role according to permissions granted to this role. When you need to look what permission/capability is required for some menu item, open “Admin menu” for “administrator” role, which has all existing capability by default.

    Table press is protected by these user capabilities:
    URE admin menu for TablePress

    Vladimir
    Keymaster

    WordPress shows admin menu items on the base of capabilities granted to a role or directly to a user. You should work with capabilities 1st to show/hide admin menu.

    Often we meet a situation when we need to hide from user some part of admin menu, but they use the same capability, like ‘manage_options’. For example, you have 2 plugins which create menus A and B protected by the same capability manage_options. You wish to show for a role menu A, but not show menu B. You can not revoke ‘manage_options’ from a role, as it will lose access to menu A too. In this case and only in this case you may use admin menu blocking feature from URE Pro. URE Pro works on the base of WordPress permissions system and does not try to replace it.

    Vladimir
    Keymaster

    Go to Users->User Role Editor, select ‘Editor’ role, click ‘Admin Menu’.
    Click: “Selected” at the top of the window and switch OFF all checkboxes to the left from the menu items. You may use top checkbox (to the left from “Menu” word” to turn ON/OFF all checkboxes at once. Click ‘Update’ to save changes.

    When nothing is selected, nothing is blocked.

Viewing 15 posts - 706 through 720 (of 2,520 total)