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

Yoast\WP\SEO\Integrations\Admin

Indexing_Tool_Integration::enqueue_scripts() public Yoast 1.0

Enqueues the required scripts.

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

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

null. Ничего.

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

$Indexing_Tool_Integration = new Indexing_Tool_Integration();
$Indexing_Tool_Integration->enqueue_scripts();

Код Indexing_Tool_Integration::enqueue_scripts() Yoast 16.8

<?php
public function enqueue_scripts() {
	$this->asset_manager->enqueue_script( 'indexation' );
	$this->asset_manager->enqueue_style( 'admin-css' );
	$this->asset_manager->enqueue_style( 'monorepo' );

	$data = [
		'disabled'                    => ! $this->indexable_helper->should_index_indexables(),
		'amount'                      => $this->indexing_helper->get_filtered_unindexed_count(),
		'firstTime'                   => ( $this->indexing_helper->is_initial_indexing() === true ),
		'isPremium'                   => $this->product_helper->is_premium(),
		'hasValidPremiumSubscription' => $this->has_valid_premium_subscription(),
		'subscriptionActivationLink'  => \esc_url( $this->short_link_helper->get( 'https://yoa.st/3wv' ) ),
		'restApi'                     => [
			'root'      => \esc_url_raw( \rest_url() ),
			'endpoints' => $this->get_endpoints(),
			'nonce'     => \wp_create_nonce( 'wp_rest' ),
		],
	];

	/**
	 * Filter: 'wpseo_indexing_data' Filter to adapt the data used in the indexing process.
	 *
	 * @param array $data The indexing data to adapt.
	 */
	$data = \apply_filters( 'wpseo_indexing_data', $data );

	$this->asset_manager->localize_script( 'indexation', 'yoastIndexingData', $data );
}