WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Получай пассивный доход от сайта с помощью браузерных PUSH уведомлений
функция не описана

WPSEO_Utils::get_admin_l10n() public Yoast 1.0

Getter for the Adminl10n array. Applies the wpseo_admin_l10n filter.

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

Хуки из метода
Возвращает

Массив. The Adminl10n array.

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

$result = WPSEO_Utils::get_admin_l10n();

Код WPSEO_Utils::get_admin_l10n() Yoast 16.2

<?php
public static function get_admin_l10n() {
	$post_type = self::get_post_type();
	$page_type = self::get_page_type();

	$label_object = false;
	$no_index     = false;

	if ( $page_type === 'post' ) {
		$label_object = get_post_type_object( $post_type );
		$no_index     = WPSEO_Options::get( 'noindex-' . $post_type, false );
	}
	else {
		$label_object = WPSEO_Taxonomy::get_labels();

		$taxonomy_slug = filter_input( INPUT_GET, 'taxonomy', FILTER_DEFAULT, [ 'options' => [ 'default' => '' ] ] );
		$no_index      = WPSEO_Options::get( 'noindex-tax-' . $taxonomy_slug, false );
	}

	$wpseo_admin_l10n = [
		'displayAdvancedTab'    => WPSEO_Capability_Utils::current_user_can( 'wpseo_edit_advanced_metadata' ) || ! WPSEO_Options::get( 'disableadvanced_meta' ),
		'noIndex'               => (bool) $no_index,
		'isPostType'            => (bool) get_post_type(),
		'postType'              => get_post_type(),
		'postTypeNamePlural'    => ( $page_type === 'post' ) ? $label_object->label : $label_object->name,
		'postTypeNameSingular'  => ( $page_type === 'post' ) ? $label_object->labels->singular_name : $label_object->singular_name,
		'isBreadcrumbsDisabled' => WPSEO_Options::get( 'breadcrumbs-enable', false ) !== true && ! current_theme_supports( 'yoast-seo-breadcrumbs' ),
		// phpcs:ignore Generic.ControlStructures.DisallowYodaConditions -- Bug: squizlabs/PHP_CodeSniffer#2962.
		'isPrivateBlog'         => ( (string) get_option( 'blog_public' ) ) === '0',
	];

	$additional_entries = apply_filters( 'wpseo_admin_l10n', [] );
	if ( is_array( $additional_entries ) ) {
		$wpseo_admin_l10n = array_merge( $wpseo_admin_l10n, $additional_entries );
	}

	return $wpseo_admin_l10n;
}