WPSEO_Addon_Manager::has_subscription_expired()protectedYoast 1.0

Checks whether a plugin expiry date has been passed.

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

Хуков нет.

Возвращает

true|false. Has the plugin expired.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->has_subscription_expired( $subscription );
$subscription(stdClass) (обязательный)
Plugin subscription.

Код WPSEO_Addon_Manager::has_subscription_expired() Yoast 22.4

protected function has_subscription_expired( $subscription ) {
	return ( strtotime( $subscription->expiry_date ) - time() ) < 0;
}