michaeluno / admin-page-framework

Facilitates WordPress plugin and theme development.
http://admin-page-framework.michaeluno.jp/
Other
337 stars 71 forks source link

Can't force the subpages to belong to custom main pages created without the the framework #294

Closed mohamedyassin07 closed 2 years ago

mohamedyassin07 commented 2 years ago

setRootMenuPage

I used the "setRootMenuPage" to set the parent but didn't work

and no one worked with me

add_submenu_page

I tried to set the pages create with the framework as the main page and use the normal "add_submenu_page" WordPress method to add subpages to the main page created with the framework, but it didn't work

any suggestions?

michaeluno commented 2 years ago

Try $this->setRootMenuPageBySlug( ... ).