Skip to content

Feature Request: delete_supercache capability #1008

@smarx80

Description

@smarx80

Impacted plugin

Super Cache

What

Replace edit_other_posts with a custom capability “delete_supercache” or add a filteror add a nice apply_filter(

How

In wpsc_admin_bar_render() there is a check on a hardcoded capability ( edit_other_posts )
which by default corresponds to the editor and administrator user levels.
This could be replaced with a custom capability “delete_supercache” or add a nice apply_filter() so this capability could be customized to permit/deny the deletion of the entire cache.

Metadata

Metadata

Assignees

No one assigned
    No fields configured for Enhancement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions