WPSEO_Admin_Pages::should_show_local_seo_upsell()privateYoast 1.0

Determines whether the Local SEO upsell should be shown.

The Local SEO upsell should:

  • Only be shown in Free, not when Premium is active.
  • Not be shown when Local SEO is active.

{} Это метод класса: WPSEO_Admin_Pages{}

Хуков нет.


true|false. Whether the Local SEO upsell should be shown.


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

Код WPSEO_Admin_Pages::should_show_local_seo_upsell() Yoast 19.7.1

private function should_show_local_seo_upsell() {
	return ! YoastSEO()->helpers->product->is_premium()
		&& ! ( defined( 'WPSEO_LOCAL_FILE' ) );