PHP Класс WPSEO_Product_Upsell_Notice, wordpress-seo

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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