What is the difference between `add_submenu_page()` and `add_options_page()` in WordPress admin menus?

WordPress Expert Medium

WordPress Expert — Medium

What is the difference between `add_submenu_page()` and `add_options_page()` in WordPress admin menus?

Key points

  • `add_options_page()` is a shortcut for adding a submenu page under Settings
  • `add_submenu_page()` needs the parent menu slug to place the page correctly
  • Understanding these functions helps organize admin menus effectively

Ready to go further?

Related questions