I think the title of this post is quite self-describing, but I would like to restrict the list of parent pages (in the edit page form) to only those pages, which are created by logged user - the list should be filtered by Author.
E.g. The user foo
has created pages "Animals" and "Vehicles". Now, he would like to create new page "Dogs". He creates new page, fill the title and content, and he would like to change parent page. He clicks on selectbox with the list of parent pages and he will see only "Animals" and "Vehicles". After saving new page "Dogs" he will see "Animals", "Vehicles" and "Dogs".
I think it should be some Wordpress filter (created by the function add_filter()
), but I am "novice" in Wordpress, so I am not able to create it now. Could you please help me?
Thank you very much.