PHP Class WPSEO_Product_Upsell_Notice, wordpress-seo

Afficher le fichier Open project: yoast/wordpress-seo Class Usage Examples

Protected Properties

Свойство Type Description
$options array

Méthodes publiques

Méthode Description
__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.

Méthodes protégées

Méthode Description
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.

Method Details

__construct() public méthode

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

add_notification() protected méthode

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

dismiss_notice() protected méthode

Dismisses the notice.
protected dismiss_notice ( )

dismiss_notice_listener() public méthode

Listener for the upsell notice.

get_notification() protected méthode

Gets the notification value.
protected get_notification ( ) : Yoast_Notification
Résultat Yoast_Notification

get_options() protected méthode

Returns the set options
protected get_options ( ) : mixed | void
Résultat mixed | void

get_premium_upsell_section() protected méthode

Returns a premium upsell section if using the free plugin.
protected get_premium_upsell_section ( ) : string
Résultat string

has_first_activated_on() protected méthode

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

initialize() public méthode

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

is_notice_dismissed() protected méthode

Dismisses the notice.
protected is_notice_dismissed ( ) : string
Résultat string

remove_notification() protected méthode

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

save_options() protected méthode

Saves the options to the database.
protected save_options ( )

set_first_activated_on() protected méthode

Sets the first activated on.
protected set_first_activated_on ( )

set_upgrade_notice() public méthode

Sets the upgrade notice.
public set_upgrade_notice ( )

should_add_notification() protected méthode

When the notice should be shown.
protected should_add_notification ( ) : boolean
Résultat boolean

Property Details

$options protected_oe property

protected array $options
Résultat array