WPSEO_Product_Upsell_Notice::should_add_notification()protectedYoast 1.0

When the notice should be shown.

Метод класса: WPSEO_Product_Upsell_Notice{}

Хуков нет.

Возвращает

true|false.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->should_add_notification();

Код WPSEO_Product_Upsell_Notice::should_add_notification() Yoast 22.4

protected function should_add_notification() {
	return ( $this->options['first_activated_on'] < strtotime( '-2weeks' ) );
}