• Resolved Howdy_McGee

    (@howdy_mcgee)


    Hello,

    Thank you for putting this plugin together, between the options and the overall display it’s one of the better notification plugins on Repo. My only big gripe with this plugin is that the options page is nested within Settings > Options General. Unfortunately, this prevents users without the manage_options capability from being able to modify or manage the Notification Bar. For “managed systems” where the main user does not have full admin access this is troublesome. Usually, they are Editors or custom users without the manage_options capability.

    My feature request is that if a custom settings page could be made where the capability is lower than manage_options or is filterable ( via hooks to change ). This would allow the largest subset of users to access and manage the plugin.

Viewing 13 replies - 1 through 13 (of 13 total)
  • This is a +1 for me too, definitely a must have!

    Thank you for considering adding this feature, or a hook / snippet to customize the required capability.

    Thank you for your great plugin!

    Plugin Support Swathi S

    (@swathiswpfront)

    Hello,

    Thanks for the suggestion.This will be implemented in next version.

    Thankss,
    Swathi s

    Thread Starter Howdy_McGee

    (@howdy_mcgee)

    @swathiswpfront Thanks for implementing this feature. Unfortunately, I don’t think it works as expected. This update seems to allow Editor to view the settings but not save the settings. Any form posted to options.php requires the manage_options capability, and I don’t believe there’s any hook to change that.

    I think for this feature to work thoroughly is that this plugin would need its own options page. Possibly tucked under Appearance instead of Settings.

    Plugin Support Swathi S

    (@swathiswpfront)

    Hi @howdy_mcgee

    Thanks for letting us know!

    We tested and confirm the issue exist, this has been already taken care of and will be fixed in the upcoming release.

    Thanks!

    WoW man, thanks for being so responsive!

    I didn’t take the time to thank you for adding this feature. Cheers!

    Plugin Support Swathi S

    (@swathiswpfront)

    Hi,

    We released a new update containing the fix for this issue.

    Please update to the latest version to access this fix.

    Thanks!

    soulshakepower

    (@soulshakepower)

    Hi Swathi,

    I just updated to latest version, but I don’t see any changes.
    Even worst, Editors used to be able to access the page but not save changes. But now they can’t access the page.

    Plugins settings are still under the Settings menu and are requiring manage_options

    Is there a setting to change required level? Didn’t see any.

    Thank you!

    Plugin Support Swathi S

    (@swathiswpfront)

    Hi @soulshakepower,

    Did you define the ‘WPFRONT_NOTIFICATION_BAR_EDIT_CAPABILITY’ constant to change the capability checked by Notification Bar?

    You can also use the ‘wpfront_notification_bar_edit_capability’ filter to set custom capability.

    Thanks!

    soulshakepower

    (@soulshakepower)

    Hi @swathiswpfront,

    Thank you for quick reply. I don’t think I know how to do this I’m afraid.

    I tried to add the ‘wpfront_notification_bar_edit_capability’ to a user role using a use-role plugin but I don’t think this is the way.

    I understand this is custom support so too bad for me I guess, this is too techy :p

    Plugin Support Swathi S

    (@swathiswpfront)

    Hello @soulshakepower,

    We’d be happy to help!

    Can you please follow the steps below?

    1. Insert define(‘WPFRONT_NOTIFICATION_BAR_EDIT_CAPABILITY’, 'your_custom_capability'); into your wp-config.php.
    You can use your own capability in the place of ‘your_custom_capability’.

    2. Use the “WPFront User Role Editor” plugin to set your custom capability to roles. Please visit https://wpfront.com/user-role-editor-pro/add-remove-capability/

    I hope this helps! Let us know if you have any further questions

    Thanks,
    Swathi`

    Hi @swathiswpfront,

    Thank you so much for providing your help on this. Sorry I couldn’t reply earlier.

    I was just wondering if adding such function in wp-config.php file was not a potential security risk? And a source of problems if I ever clean the WP install. I have to say I don’t like the idea of adding a plugin related function in the wp-config file.

    Any chance there could be a snippet to add in functions.php instead?

    If not, I am already thankful for your help. Thank you!

    Plugin Support Swathi S

    (@swathiswpfront)

    Hi @soulshakepower,

    You can define the constant anywhere, not necessarily in wp-config.

    Thanks!

    Hi @swathiswpfront,

    Thanks, it worked great by defining the constant in wp-config.php

    Note: there are invalid quote symbols (‘’ instead of ”) in your provided code around WPFRONT_NOTIFICATION_BAR_EDIT_CAPABILITY, you may want to edit your post in case others copy/paste.

    Thank you so much! Love this plugin!! Cheers ??

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘[Feature Request] Custom Settings Page (Editor Access)’ is closed to new replies.