Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    This is not an error, this is a correct message. Themes should use the add_theme_page function instead.

    The add_options_page function is for adding pages to the settings menu, themes should add their pages under the Appearance menu.

    Thread Starter ilenstudio

    (@ilenstudio)

    I do not think this logic response because within a WordPress Theme you can create new pages and plugin need to be add_options_page, is an error that the plugin does not accept this option.

    Plugin Author Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    It is not an error, it is intentional. Themes are not allowed to use the add_options_page function, as per the theme review guidelines.

    http://make.wordpress.org/themes/guidelines/guidelines-theme-check/

    Themes are required to use the add_theme_page() function to add the Theme Settings Page to the Appearance menu, rather than using add_menu_page() to add a top-level menu.

    The add_options_page function is disallowed for the same reason, because themes should add their pages to the Appearance menu, not to the Settings menu.

    Thread Starter ilenstudio

    (@ilenstudio)

    Ok, no choice.
    Thanks for the prompt response.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error add_options_page’ is closed to new replies.