PHP 클래스 WPSEO_Product_Upsell_Notice, wordpress-seo

파일 보기 프로젝트 열기: yoast/wordpress-seo 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$options array

공개 메소드들

메소드 설명
__construct ( ) Sets the options, because they always have to be there on instance.
dismiss_notice_listener ( ) Listener for the upsell notice.
initialize ( ) Checks if the notice should be added or removed.
set_upgrade_notice ( ) Sets the upgrade notice.

보호된 메소드들

메소드 설명
add_notification ( ) Adds a notification to the notification center.
dismiss_notice ( ) Dismisses the notice.
get_notification ( ) : Yoast_Notification Gets the notification value.
get_options ( ) : mixed | void Returns the set options
get_premium_upsell_section ( ) : string Returns a premium upsell section if using the free plugin.
has_first_activated_on ( ) Checks if the options has a first activated on date value.
is_notice_dismissed ( ) : string Dismisses the notice.
remove_notification ( ) Adds a notification to the notification center.
save_options ( ) Saves the options to the database.
set_first_activated_on ( ) Sets the first activated on.
should_add_notification ( ) : boolean When the notice should be shown.

메소드 상세

__construct() 공개 메소드

Sets the options, because they always have to be there on instance.
public __construct ( )

add_notification() 보호된 메소드

Adds a notification to the notification center.
protected add_notification ( )

dismiss_notice() 보호된 메소드

Dismisses the notice.
protected dismiss_notice ( )

dismiss_notice_listener() 공개 메소드

Listener for the upsell notice.

get_notification() 보호된 메소드

Gets the notification value.
protected get_notification ( ) : Yoast_Notification
리턴 Yoast_Notification

get_options() 보호된 메소드

Returns the set options
protected get_options ( ) : mixed | void
리턴 mixed | void

get_premium_upsell_section() 보호된 메소드

Returns a premium upsell section if using the free plugin.
protected get_premium_upsell_section ( ) : string
리턴 string

has_first_activated_on() 보호된 메소드

Checks if the options has a first activated on date value.
protected has_first_activated_on ( )

initialize() 공개 메소드

Checks if the notice should be added or removed.
public initialize ( )

is_notice_dismissed() 보호된 메소드

Dismisses the notice.
protected is_notice_dismissed ( ) : string
리턴 string

remove_notification() 보호된 메소드

Adds a notification to the notification center.
protected remove_notification ( )

save_options() 보호된 메소드

Saves the options to the database.
protected save_options ( )

set_first_activated_on() 보호된 메소드

Sets the first activated on.
protected set_first_activated_on ( )

set_upgrade_notice() 공개 메소드

Sets the upgrade notice.
public set_upgrade_notice ( )

should_add_notification() 보호된 메소드

When the notice should be shown.
protected should_add_notification ( ) : boolean
리턴 boolean

프로퍼티 상세

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

protected array $options
리턴 array