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


Indexing_Notification_Presenter::get_time_estimate() protected Yoast 1.0

Creates a time estimate based on the total number on unindexed objects.

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

Хуков нет.


Строку. The time estimate as a HTML string.


// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_time_estimate( $total_unindexed );
$total_unindexed(int) (обязательный)
The total number of unindexed objects.

Код Indexing_Notification_Presenter::get_time_estimate() Yoast 18.0

protected function get_time_estimate( $total_unindexed ) {
	if ( $total_unindexed < 400 ) {
		return \esc_html__( 'We estimate this will take less than a minute.', 'wordpress-seo' );

	if ( $total_unindexed < 2500 ) {
		return \esc_html__( 'We estimate this will take a couple of minutes.', 'wordpress-seo' );

	$estimate  = \esc_html__( 'We estimate this could take a long time, due to the size of your site. As an alternative to waiting, you could:', 'wordpress-seo' );
	$estimate .= '<ul class="ul-disc">';
	$estimate .= '<li>';
	$estimate .= \sprintf(
		/* translators: 1: Expands to Yoast SEO */
		\esc_html__( 'Wait for a week or so, until %1$s automatically processes most of your content in the background.', 'wordpress-seo' ),
		'Yoast SEO'
	$estimate .= '</li>';
	$estimate .= '<li>';
	$estimate .= \sprintf(
		/* translators: 1: Link to article about indexation command, 2: Anchor closing tag, 3: Link to WP CLI. */
		\esc_html__( '%1$sRun the indexation process on your server%2$s using %3$sWP CLI%2$s.', 'wordpress-seo' ),
		'<a href="' . \esc_url( $this->short_link_helper->get( 'https://yoa.st/3-w' ) ) . '" target="_blank">',
		'<a href="https://wp-cli.org/" target="_blank">'

	$estimate .= '</li>';
	$estimate .= '</ul>';

	return $estimate;