kylephillips / wp-nested-pages

A more intuitive way to manage pages and content structure in the WordPress admin
https://nestedpages.com
183 stars 64 forks source link

Feature Request: Making use of disableNestingClass #317

Closed lstenner closed 2 years ago

lstenner commented 2 years ago

Hi,

nestedSortable seems to have the option to disable Nesting within a branch by giving the parent a class. The default class in the shipped version thats coming with wp-nested-pages has the class "mjs-nestedSortable-no-nesting" for that.

It would be nice if Nested Pages honored that class to prevent sorting inside a branch.

kylephillips commented 2 years ago

The next release will introduce a new filter, nestedpages_row_parent_css_classes. The filter will pass three parameters: the css classes, the post object, and the post type.

Here is a Gist showing usage