Property | Type | Description | |
---|---|---|---|
$hook_suffix | The hook suffix of the parent settings page |
Method | Description | |
---|---|---|
addHelpTab ( WP_Screen $screen ) : void | Display inline help content | |
addToSettingsPage ( string $hook_suffix ) : boolean | Add site attribution option and settings section to an existing settings page | |
defaultOptions ( ) : array | Default options if no options exist | |
defineRestrictionsSection ( ) : void | Add warnings settings section and fields | |
defineSection ( ) : void | Add theme settings section and fields | |
defineWarningsSection ( ) : void | Add warnings settings section and fields | |
displayBorderColor ( ) : void | Choose a hex color value as the border color | |
displayContentSecurityPolicy ( ) : void | Suppress a Content Security Policy warning | |
displayDoNotTrack ( ) : void | Do not track visitors for use in Twitter advertisers and site suggestions | |
displayLinkColor ( ) : void | Choose a hex color value as the link color | |
displayTheme ( ) : void | Choose a theme | |
featureName ( ) : string | Reference the feature by name | |
onload ( ) : void | Store existing options. Set up page sections | |
restrictionsSectionHeader ( ) : void | Introduction to the Twitter restrictions section | |
sanitizeOptions ( array $options ) : array | Sanitize theme options | |
sectionHeader ( ) : void | Introduce the settings page | |
themeChoices ( ) : array | Theme options and labels | |
warningsSectionHeader ( ) : void | Introduce the warnings section |
public static addHelpTab ( WP_Screen $screen ) : void | ||
$screen | WP_Screen | current screen |
return | void |
public static addToSettingsPage ( string $hook_suffix ) : boolean | ||
$hook_suffix | string | hook suffix of an existing settings page |
return | boolean | site attribution settings loaded |
public static defaultOptions ( ) : array | ||
return | array | associative array of option values |
public defineRestrictionsSection ( ) : void | ||
return | void |
public defineSection ( ) : void | ||
return | void |
public defineWarningsSection ( ) : void | ||
return | void |
public displayBorderColor ( ) : void | ||
return | void |
public displayContentSecurityPolicy ( ) : void | ||
return | void |
public displayDoNotTrack ( ) : void | ||
return | void |
public displayLinkColor ( ) : void | ||
return | void |
public static featureName ( ) : string | ||
return | string | translated feature name |
public static restrictionsSectionHeader ( ) : void | ||
return | void |
public static sanitizeOptions ( array $options ) : array | ||
$options | array | submitted options |
return | array | associative array of clean options |
public static sectionHeader ( ) : void | ||
return | void |
public static themeChoices ( ) : array | ||
return | array | associative array of accepted values and the value's translated label |
public static warningsSectionHeader ( ) : void | ||
return | void |