프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |