wp-crontrol icon indicating copy to clipboard operation
wp-crontrol copied to clipboard

Request: Filter capability required to use WP Crontrol

Open MadtownLems opened this issue 10 months ago • 2 comments

Howdy,

This plugin leans heavily on manage_options to control access to the Cron events. That's awkward in our MultiSite environment, where I really don't want standard Site Administrators seeing this stuff - just us Network Admins.

I've got a wonky workaround to remove the menu item, and check access on the relevant screens, but I'd much rather just use a simple filter (and expect it would have much better future-proofing as well).

I'd love to be able to filter it to set it to manage_network_options.

Thanks for considering.

MadtownLems avatar Feb 06 '25 21:02 MadtownLems

I'm planning on switching to proper meta capabilities (which will map to manage_options by default) which you can then grant, deny, or filter to your liking. No ETA just yet but it's on my todo list.

johnbillion avatar Feb 06 '25 22:02 johnbillion

That works for me. We make extensive use of that already and can easily work with that. Cheers!

MadtownLems avatar Feb 06 '25 22:02 MadtownLems