Property | Type | Description | |
---|---|---|---|
$icon | |||
$settings |
Property | Type | Description | |
---|---|---|---|
$registered_pages |
Method | Description | |
---|---|---|
__construct ( string $title ) | Create a new theme options fields container | |
add_fields ( array $fields ) | Append array of fields to the current fields set. All items of the array must be instances of Field and their names should be unique for all Carbon containers. | |
attach ( ) | Add theme options container pages. | |
detach ( ) | Revert the result of attach() | |
drop_unique_page ( ) | Unregister the container parent and child pages. | |
init ( ) | Attach container as a theme options page/subpage. | |
is_active ( ) | Whether this container is currently viewed. | |
is_valid_save ( ) : boolean | Perform checks whether the current save() request is valid. | |
render ( ) | Output the container markup | |
save ( mixed $user_data = null ) | Perform save operation after successful is_valid_save() check. | |
set_icon ( $icon ) | Set the icon of this theme options page. | |
set_page_file ( $file ) | Set the theme options file name of this container. | |
set_page_parent ( $parent ) | Change the parent theme options page of this container | |
set_page_permissions ( $permissions ) | Set the permissions necessary to view the corresponding theme options page | |
verify_unique_page ( ) | Make sure that there are no duplicate containers with the same name. |
Method | Description | |
---|---|---|
clear_string ( $string ) | Sanitize the container title for use in the theme options file name. |
public __construct ( string $title ) | ||
$title | string | Unique title of the container |
public add_fields ( array $fields ) | ||
$fields | array |
protected clear_string ( $string ) |
public drop_unique_page ( ) |
public is_valid_save ( ) : boolean | ||
return | boolean |
public set_page_file ( $file ) |
public set_page_parent ( $parent ) |
public set_page_permissions ( $permissions ) |
public verify_unique_page ( ) |