PHP 클래스 Twitter\WordPress\Admin\Settings\Cards\SiteAttribution

부터: 1.0.0
상속: implements Twitter\WordPress\Admin\Settings\SettingsSection
파일 보기 프로젝트 열기: twitter/wordpress

보호된 프로퍼티들

프로퍼티 타입 설명
$hook_suffix The hook suffix of the parent settings page

공개 메소드들

메소드 설명
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

메소드 상세

addHelpTab() 공개 정적인 메소드

Display inline help content
부터: 1.0.0
public static addHelpTab ( WP_Screen $screen ) : void
$screen WP_Screen current screen
리턴 void

addToSettingsPage() 공개 정적인 메소드

Add site attribution option and settings section to an existing settings page
부터: 1.0.0
public static addToSettingsPage ( string $hook_suffix ) : boolean
$hook_suffix string hook suffix of an existing settings page
리턴 boolean site attribution settings loaded

defineSection() 공개 메소드

Define site attribution section and the fields within
부터: 1.0.0
public defineSection ( ) : void
리턴 void

displaySiteAttributionUsername() 공개 메소드

Input a Twitter screen_name to attribute to site content
부터: 1.0.0

featureName() 공개 정적인 메소드

Reference the feature by name
부터: 1.0.0
public static featureName ( ) : string
리턴 string translated feature name

onload() 공개 메소드

Set up settings section
부터: 1.0.0
public onload ( ) : void
리턴 void

sanitize() 공개 정적인 메소드

Clean up user inputted Twitter username value before saving the option
부터: 1.0.0
public static sanitize ( string $screen_name ) : string
$screen_name string inputted Twitter username value
리턴 string sanitized Twitter username value

sectionHeader() 공개 정적인 메소드

Introduce the settings section
부터: 1.0.0
public static sectionHeader ( ) : void
리턴 void

프로퍼티 상세

$hook_suffix 보호되어 있는 프로퍼티

The hook suffix of the parent settings page
부터: 1.0.0
protected $hook_suffix