Closed pmgarman closed 1 month ago
This was the code i used to test that this worked for the author role:
add_filter( 'roc_manage_redis_capability', function( $cap ) {
return 'publish_posts';
});
Resolved conflict in changelog
Should we also make this a constant for easier access?
You would only be able to define your default as a constant though right? Since the constant can't change after being filtered?
You would only be able to define your default as a constant though right? Since the constant can't change after being filtered?
Yeah, it would be set once in the wp-config.php
and should be opt-in, not used by default.
Oh I see what you mean, inverse of what I was thinking. It's monday...
I could see that being handy too yeah. I can update my PR and fix those codestyle complaints.
Any preference on your constant name?
Nevermind those errors are yours :P enjoy!
Opted for WP_REDIS_MANAGER_CAPABILITY
until @tillkruss says otherwise :)
@tillkruss try this on for size
Couldn't find a CONTRIBUTING.md (i may be blind) so took a best guess. Also just assumed 2.6 but who knows?!
I think this could easily be a thing that gets enhanced deeper for multisite to allow individual site owners to flush their individual sites cache or something along those lines... but this probably serves my needs well enough :D