Yoast\WP\SEO\Task_List\Application\Tasks
Improve_Content_SEO::get_copy_set
Returns the task's copy set.
Метод класса: Improve_Content_SEO{}
Хуков нет.
Возвращает
Copy_Set.
Использование
$Improve_Content_SEO = new Improve_Content_SEO(); $Improve_Content_SEO->get_copy_set(): Copy_Set;
Код Improve_Content_SEO::get_copy_set() Improve Content SEO::get copy set Yoast 28.9
public function get_copy_set(): Copy_Set {
// @TODO: the copy in the task is very much WIP from the designing team, so let's deal with that later on.
$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 the SEO of your recent content: %1$s', 'wordpress-seo' ), $post_type->label ),
\sprintf(
/* translators: %1$s expands to an opening p tag, %2$s and %4$s expand to a closing p tag, %3$s expands to an opening p tag and opening strong tag, %5$s expands to a closing strong tag, %6$s expands to an opening strong tag, %7$s expands to a closing strong tag and closing p tag */
\__( '%1$sBy aligning your content with search intent and focus keyphrases, you make it easier for people and AI systems to find your website, improving your organic visibility. Use the recommendations in the SEO analysis to strengthen your technical performance and ranking potential.%2$s%3$sPro tip%5$s: Use %6$sAI Generate%7$s to quickly generate high quality meta descriptions and keyphrase-rich headers that rank well.%4$s', 'wordpress-seo' ),
'<p>',
'</p>',
'<p><strong>',
'</p>',
'</strong>',
'<strong>',
'</strong>',
),
);
}