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 | |
defineSection ( ) : void | Define site attribution section and the fields within | |
displaySiteAttributionUsername ( ) : void | Input a Twitter screen_name to attribute to site content | |
featureName ( ) : string | Reference the feature by name | |
onload ( ) : void | Set up settings section | |
sanitize ( string $screen_name ) : string | Clean up user inputted Twitter username value before saving the option | |
sectionHeader ( ) : void | Introduce the settings 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 defineSection ( ) : void | ||
return | void |
public displaySiteAttributionUsername ( ) : void | ||
return | void |
public static featureName ( ) : string | ||
return | string | translated feature name |
public static sectionHeader ( ) : void | ||
return | void |