Method | Description | |
---|---|---|
display ( ) | Display the options page or tab description. | |
filterDefaults ( array $defaults ) : array | Filter the array of default values for this set of options | |
getDefaults ( ) : array | Get an array of default values for this set of options | |
getSlug ( ) : string | Get the slug for this options page or tab. | |
getTitle ( ) : string | Get the localized title of this options page or tab. | |
init ( ) | Configure the options page or tab using the settings API. | |
render ( ) | Render the options page or tab. | |
sanitize ( array $input ) : array | Sanitize various options (boolean, string, integer, float). | |
upgrade ( integer $version ) | Upgrade handler for the options page or tab. |
Method | Description | |
---|---|---|
renderCheckbox ( string $id, string $name, string $option, string $value = '', string $description ) | Render a checkbox. | |
renderCustomSelect ( string $id, string $name, string $value = '', string $args, boolean $multiple = false ) | Render a custom select element. | |
renderField ( string $id, string $name, string $option, string $value = '', string $description = '', string $append = '', string $type = 'text', $class = 'regular-text', boolean $disabled = false ) | Render an input. | |
renderRadioButtons ( string $id, string $name, string $option, string $value = '', string $args, boolean $custom = false ) | Render radio buttons. | |
renderSelect ( string $id, string $name, string $option, string $value = '', string $args, boolean $multiple = false ) | Render a select element. |
abstract public display ( ) |
abstract static public filterDefaults ( array $defaults ) : array | ||
$defaults | array | |
return | array | $defaults |
abstract static public getDefaults ( ) : array | ||
return | array | $defaults |
abstract public init ( ) |
protected renderField ( string $id, string $name, string $option, string $value = '', string $description = '', string $append = '', string $type = 'text', $class = 'regular-text', boolean $disabled = false ) | ||
$id | string | |
$name | string | |
$option | string | |
$value | string | |
$description | string | |
$append | string | |
$type | string | |
$disabled | boolean |