Find solution

Settings options not showing up on Sub Menu page in WordPress plugin?

Here are 18 best answers to ‘Settings options not showing up on Sub Menu page in WordPress plugin?’ - the most relevant comments and solutions are submitted by users of WordPress, Quora and Yahoo! Answers.

Best solution

  • Settings options not showing up on Sub Menu page in WordPress plugin

    So I have a plugin with two user-customisable settings. (It's not complete but I'm getting the framework in place.) When the two settings are on the "general" settings page they work just fine... add_action('admin_init', 'mj_admin_init'); function mj_admin_init(){ register_setting('general', 'mj_options', 'mj_validate_input'); add_settings_section('mjid', 'MJ Settings', 'mj_callback', 'general'); add_settings_field('mj_notify_email', 'Email', 'mj_email_input', 'general', 'mjid'); add...

    Answer:

    If you check the arguments for add_menu_page, you'll see that the fifth argument is your callback function...

    Mark as irrelevant Undo

Other solutions