-
-
Notifications
You must be signed in to change notification settings - Fork 4
Plugin extension API
Register the plugin admin tabs.
@since 0.5
@param array $tabs Tab instances.
@return array Array of tab instanced. Array key needs to be the tab ID.
Action URL for the setting page form.
@since 0.5
@param string $url options.php
@return string
Add submit button to setting page.
@since 0.5
@param bool $true True by default
@return bool
Add settings fields to setting page.
@since 0.5
@param bool $true True by default
@return bool
Add settings sections to setting page.
@since 0.5
@param bool $true True by default
@return bool
Change the postbox classes for setting sections.
@since 0.5
@param string $classes The default classes.
@param array $section
@param string $page
@return string
Filter the form input data before validation with defaults.
@since 0.5
@param array $input New form input.
@param array $current Current settings.
@return array
Filter the parsed form data. Note: Required
@since 0.5
@param array $data Parsed input data.
@param array $input Original input.
@return array
Change the capability required to access a setting tab.
Note: $tab_filter_name is normally the tab ID without ocs- prefix.
@since 0.5
@param string $capability Default: `edit_theme_options`.
@return string
Runs after the settings page is registered.
@since 0.5
Runs after all tab settings are registered.
Note: $tab_filter_name is normally the tab ID without ocs- prefix.
@since 0.5
Runs before the settings page form is rendered.
@since 0.5
Hook in here to render within the settings form.
@since 0.5
Runs after the settings page form is rendered.
@since 0.5
Render before the section content.
@since 0.5
@param array $section
@param string $page
Render after the section content.
@since 0.5
@param array $section
@param string $page
Render before the section content table.
@since 0.5
@param array $section
@param string $page
Render after the section content table.
@since 0.5
@param array $section
@param string $page

