Метод | Описание | |
---|---|---|
add_error ( string $text ) | Add an error. | |
add_message ( string $text ) | Add a message. | |
check_download_folder_protection ( ) | Checks which method we're using to serve downloads. | |
get_field_description ( array $value ) : array | Helper function to get the formated description and tip HTML for a given form field. Plugins can call this when implementing their own custom settings types. | |
get_option ( mixed $option_name, $default = '' ) : string | Get a setting from the settings API. | |
get_settings_pages ( ) | Include the settings page classes. | |
output ( ) | Settings page. | |
output_fields ( array $options ) | Output admin fields. | |
save ( ) | Save the settings. | |
save_fields ( array $options, array $data = null ) : boolean | Save admin fields. | |
show_messages ( ) : string | Output messages + errors. |
public static add_message ( string $text ) | ||
$text | string |
public static check_download_folder_protection ( ) |
public static get_field_description ( array $value ) : array | ||
$value | array | The form field value array |
Результат | array | The description and tip as a 2 element array |
public static get_option ( mixed $option_name, $default = '' ) : string | ||
$option_name | mixed | |
Результат | string |
public static get_settings_pages ( ) |
public static output ( ) |
public static output_fields ( array $options ) | ||
$options | array | Opens array to output |
public static show_messages ( ) : string | ||
Результат | string |