Property | Type | Description | |
---|---|---|---|
$hook_suffix | The hook suffix of the parent settings page |
Method | Description | |
---|---|---|
addToSettingsPage ( string $hook_suffix ) : boolean | Add Tweet button content wrapper option and settings section to an existing settings page | |
defineSection ( ) : void | Define Tweet button section and the fields within | |
displayPosition ( ) : void | Choose to display a Tweet button before, after, or before & after every public post | |
displaySize ( ) : void | Choose a large button size, overriding the default | |
featureName ( ) : string | Reference the feature by name | |
getPositionOptions ( ) : array | Get option values and labels for dropdown display | |
onload ( ) : void | Set up settings section | |
sanitizeOption ( array $options ) : array | Sanitize posted option before saving | |
sectionHeader ( ) : void | Introduce the settings section |
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 displayPosition ( ) : void | ||
return | void |
public displaySize ( ) : void | ||
return | void |
public static featureName ( ) : string | ||
return | string | translated feature name |
public static getPositionOptions ( ) : array | ||
return | array | option values and labels { @type string option value @type string translated option label } |
public static sanitizeOption ( array $options ) : array | ||
$options | array | submitted option { @type string option name @type mixed option value } |
return | array | $options cleaned option { @type string option name @type string option value } |
public static sectionHeader ( ) : void | ||
return | void |