Skip to content

Add filter to deactivate custom page row actions #220

Description

@hirasso

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

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

Status
Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions