Свойство | Type | Description | |
---|---|---|---|
$allowed_html | array | Allowed HTML for settings pages. |
Свойство | Type | Description | |
---|---|---|---|
$base_settings | Base settings. | ||
$fonts | array | All available iOS fonts. | |
$groups | array | Groups for the section. | |
$name | string | Name of the settings section. | |
$page | string | Settings page. | |
$settings | array | Settings for the section. | |
$slug | string | Slug of the settings section. |
Méthode | Description | |
---|---|---|
__construct ( string $page ) | Constructor. | |
after_section ( ) : string | HTML to display after the section. | |
before_section ( ) : string | HTML to display before the section. | |
get_section_info ( ) : string | Gets section info. | |
get_value ( string $key, array $saved_settings = null ) : mixed | Get the current value for an option. | |
groups ( ) : array | Return an array which contains all groups and their related settings, embedded. | |
id ( ) : string | Get the ID of the settings section. | |
name ( ) : string | Get the settings section name. | |
render_field ( array $args ) | Render a settings field. | |
sanitize_array ( array $value ) : array | Sanitizes a single dimension array with text values. | |
save_settings ( ) | Each section is responsible for saving its own settings since only it knows the nature of the fields and sanitization methods. |
Méthode | Description | |
---|---|---|
get_default_for ( string $name ) : string | Get the default for a field. | |
get_description_for ( string $name ) : string | Get the description for a field. | |
get_size_for ( string $name ) : integer | Get the size for a field. | |
get_type_for ( string $name ) : string | Get the type for a field. | |
is_multiple ( string $name ) : boolean | Check if the field can hold multiple values. | |
is_required ( string $name ) : integer | Check if a field is required. |
public after_section ( ) : string | ||
Résultat | string |
public before_section ( ) : string | ||
Résultat | string |
protected static get_default_for ( string $name ) : string | ||
$name | string | |
Résultat | string |
protected get_description_for ( string $name ) : string | ||
$name | string | |
Résultat | string |
public get_section_info ( ) : string | ||
Résultat | string |
protected get_size_for ( string $name ) : integer | ||
$name | string | |
Résultat | integer |
protected get_type_for ( string $name ) : string | ||
$name | string | |
Résultat | string |
protected is_multiple ( string $name ) : boolean | ||
$name | string | |
Résultat | boolean |
protected is_required ( string $name ) : integer | ||
$name | string | |
Résultat | integer |
public render_field ( array $args ) | ||
$args | array |
public sanitize_array ( array $value ) : array | ||
$value | array | |
Résultat | array |
public save_settings ( ) |
public static array $allowed_html | ||
Résultat | array |
protected static Settings,Apple_Exporter $base_settings | ||
Résultat |
protected static array $fonts | ||
Résultat | array |