Options_Page
abstract class Options_Page extends Page
A class to abstract and automate the process of creating a page under the 'settings' menu item.
Properties
| static protected Singleton[] | $_instances | from Singleton |
Methods
Construct the parent settings page.
Maybe initialize singleton instance and return the instance.
A short one-liner tool to get a ReflectionClass so we can get runtime info for the static class instance and not this abstract.
The inherited, abstract menu item function.
The page slug for registering settings, adding menu items, etc.
The capability required for the page to be displayed to the user.
The inherited function from the abstract returning the submenu ID.
Return the Sections associated with this Settings Page.
Get all of the settings for this page and display them.
Details
at line 41
__construct()
Construct the parent settings page.
in
Singleton at line 42
final static Singleton
instance(mixed $args = null)
Maybe initialize singleton instance and return the instance.
in
Singleton at line 63
final static array
get_instances()
Return a copy of the instances array.
in
Singleton at line 72
final protected ReflectionClass
get_class_reflection()
A short one-liner tool to get a ReflectionClass so we can get runtime info for the static class instance and not this abstract.
at line 48
final static protected
add_menu_item()
The inherited, abstract menu item function.
in
Page at line 38
abstract static string
page_option_group()
The page slug for registering settings, adding menu items, etc.
in
Page at line 45
abstract static string
page_title()
The page name/title for display.
in
Page at line 52
abstract static string
menu_title()
The menu name/title for display.
in
Page at line 59
abstract static string
page_capability()
The capability required for the page to be displayed to the user.
at line 36
final static string
submenu_id()
The inherited function from the abstract returning the submenu ID.
in
Page at line 73
final static Settings_Section[]
get_sections()
Return the Sections associated with this Settings Page.
in
Page at line 92
final static bool
menu_item_exists()
See if the Settings Page exists in the WP global $submenu.
at line 61
final static
render()
Get all of the settings for this page and display them.
at line 81
final
add_section(Settings_Section $Settings_Section)
Register a section with this Page.