Yoast\WP\SEO\Editors\Framework\Site
Base_Site_Information::get_legacy_site_information()
Returns site information that is the
Метод класса: Base_Site_Information{}
Хуков нет.
Возвращает
Массив<Строку,
. string|array<string, string|array<string, string>>>
Использование
$Base_Site_Information = new Base_Site_Information(); $Base_Site_Information->get_legacy_site_information(): array;
Код Base_Site_Information::get_legacy_site_information() Base Site Information::get legacy site information Yoast 25.1
public function get_legacy_site_information(): array { return [ 'adminUrl' => \admin_url( 'admin.php' ), 'linkParams' => $this->short_link_helper->get_query_params(), 'pluginUrl' => \plugins_url( '', \WPSEO_FILE ), 'wistiaEmbedPermission' => $this->wistia_embed_permission_repository->get_value_for_user( \get_current_user_id() ), 'sitewideSocialImage' => $this->options_helper->get( 'og_default_image' ), // phpcs:ignore Generic.ControlStructures.DisallowYodaConditions -- Bug: squizlabs/PHP_CodeSniffer#2962. 'isPrivateBlog' => ( (string) \get_option( 'blog_public' ) ) === '0', 'currentPromotions' => $this->promotion_manager->get_current_promotions(), 'blackFridayBlockEditorUrl' => ( $this->promotion_manager->is( 'black-friday-2023-checklist' ) ) ? $this->short_link_helper->get( 'https://yoa.st/black-friday-checklist' ) : '', 'metabox' => [ 'site_name' => $this->meta->for_current_page()->site_name, 'contentLocale' => \get_locale(), 'userLocale' => \get_user_locale(), 'isRtl' => \is_rtl(), 'isPremium' => $this->product_helper->is_premium(), 'siteIconUrl' => \get_site_icon_url(), 'showSocial' => [ 'facebook' => $this->options_helper->get( 'opengraph', false ), 'twitter' => $this->options_helper->get( 'twitter', false ), ], ], ]; }