How to have more than one “Theme Options” page with OptionTree?
问题 OptionTree (GitHub) allows to create a " Theme Options " page for themes very simply. How could I extend OptionTree in order to create a " Plugin Options " page for my plugin? Thank you! 回答1: It's actually pretty simple. The following code will create a page under the settings page called Test Page . This is how OptionTree creates its own pages. /** * Hook to register admin pages */ add_action( 'init', 'register_options_pages' ); /** * Registers all the required admin pages. */ function