WPSEO_Tracking_Theme_Data::get()publicYoast 1.0

Returns the collection data.

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

Хуков нет.

Возвращает

Массив. The collection data.

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

$WPSEO_Tracking_Theme_Data = new WPSEO_Tracking_Theme_Data();
$WPSEO_Tracking_Theme_Data->get();

Код WPSEO_Tracking_Theme_Data::get() Yoast 19.7.1

public function get() {
	$theme = wp_get_theme();

	return [
		'theme' => [
			'name'                 => $theme->get( 'Name' ),
			'url'                  => $theme->get( 'ThemeURI' ),
			'version'              => $theme->get( 'Version' ),
			'author'               => [
				'name' => $theme->get( 'Author' ),
				'url'  => $theme->get( 'AuthorURI' ),
			],
			'parentTheme'          => $this->get_parent_theme( $theme ),
			'blockTemplateSupport' => current_theme_supports( 'block-templates' ),
			'isBlockTheme'         => function_exists( 'wp_is_block_theme' ) && wp_is_block_theme(),
		],
	];
}