BUG: parent level attr not working
-
Hey, so thing is, I have page when I limit max depth of parent levels to 3, code is working.
But after activating Nested pages plugin, it does not work anymore. On single page edit I can again set as deep as I want, like without my code.
Also drop & drag UP allow me to set much deeper logic.
I must limit it somehow, does nested pages have some special hooks to do it?function limit_hierarchy_depth($args) { $args['depth'] = 3; return $args; } add_filter('page_attributes_dropdown_pages_args','limit_hierarchy_depth'); add_filter('quick_edit_dropdown_pages_args', 'limit_hierarchy_depth');
The topic ‘BUG: parent level attr not working’ is closed to new replies.