Yoast\WP\SEO\Task_List\Application\Tasks

Improve_Default_Meta_Descriptions::get_copy_set │ public │ Yoast 1.0

Returns the task's copy set.

Метод класса: Improve_Default_Meta_Descriptions{}

Хуков нет.

Возвращает

Copy_Set.

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

$Improve_Default_Meta_Descriptions = new Improve_Default_Meta_Descriptions();
$Improve_Default_Meta_Descriptions->get_copy_set(): Copy_Set;

Код Improve_Default_Meta_Descriptions::get_copy_set() Yoast 28.9

public function get_copy_set(): Copy_Set {
	$post_type = \get_post_type_object( $this->get_post_type() );

	return new Copy_Set(
		/* translators: %1$s expands to the post type label this task is about */
		\sprintf( \__( 'Improve default meta descriptions of your recent content: %1$s', 'wordpress-seo' ), $post_type->label ),
		\sprintf(
			/* translators: %1$s expands to <p>, %2$s expands to </p>, %3$s expands to <p>, %4$s expands to </p>, %5$s expands to <strong>, %6$s expands to </strong>, %7$s expands to <strong> and %8$s expands to </strong>. */
			\__( '%1$sDefault meta descriptions don\'t always highlight what makes your page unique. Write your own to improve clarity and drive more clicks.%2$s%3$sShort on time? In %5$sYoast SEO Premium%6$s, use %7$sAI Generate%8$s to create tailored meta descriptions in seconds.%4$s', 'wordpress-seo' ),
			'<p>',
			'</p>',
			'<p>',
			'</p>',
			'<strong>',
			'</strong>',
			'<strong>',
			'</strong>',
		),
	);
}