Свойство | Тип | Описание | |
---|---|---|---|
$hook_suffix | The hook suffix of the parent settings page |
Метод | Описание | |
---|---|---|
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 |
Результат | boolean | site attribution settings loaded |
public defineSection ( ) : void | ||
Результат | void |
public displayPosition ( ) : void | ||
Результат | void |
public displaySize ( ) : void | ||
Результат | void |
public static featureName ( ) : string | ||
Результат | string | translated feature name |
public static getPositionOptions ( ) : array | ||
Результат | 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 } |
Результат | array | $options cleaned option { @type string option name @type string option value } |
public static sectionHeader ( ) : void | ||
Результат | void |