Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add filter to deactivate custom page row actions #220

Open
1 task done
hirasso opened this issue Jul 23, 2024 · 0 comments
Open
1 task done

Add filter to deactivate custom page row actions #220

hirasso opened this issue Jul 23, 2024 · 0 comments
Labels
type:enhancement New feature or request.

Comments

@hirasso
Copy link

hirasso commented Jul 23, 2024

Is your enhancement related to a problem? Please describe.

Let me first say that simple page ordering is one of my all-time favorite WordPress plugins! Thanks for maintaining it over all those years 🙏

I have a project where I have implemented some page restrictions (parent/child,...), so that non-administrators can't change the place in the tree for some pages. This conflicts with the (new?) custom page row actions in simple page ordering. I'd love to see a simple filter to deactivate these custom row actions. Something like this to opt out would be great IMO:

add_filter('simple_page_ordering_add_row_actions', '__return_false');

Designs

n/a

Describe alternatives you've considered

It's already possible to deactivate the actions, it's just a little clumsy:

add_action('load-edit.php', function() {
    remove_action('page_row_actions', 'SimplePageOrdering\\Simple_Page_Ordering::page_row_actions');
}, 11);

Code of Conduct

  • I agree to follow this project's Code of Conduct
@hirasso hirasso added the type:enhancement New feature or request. label Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement New feature or request.
Projects
Status: Incoming
Development

No branches or pull requests

1 participant