Yoast\WP\SEO\Task_List\Application\Tasks
Set_Search_Appearance_Templates::get_copy_set
Returns the task's copy set.
Метод класса: Set_Search_Appearance_Templates{}
Хуков нет.
Возвращает
string|null.
Использование
$Set_Search_Appearance_Templates = new Set_Search_Appearance_Templates(); $Set_Search_Appearance_Templates->get_copy_set(): Copy_Set;
Код Set_Search_Appearance_Templates::get_copy_set() Set Search Appearance Templates::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( \__( 'Set search appearance templates for your content type: %1$s', 'wordpress-seo' ), $post_type->label ),
/* translators: %s expands to the post type name this task is about */
'<p>' . \sprintf( \__( 'Generic titles and descriptions make your results unclear in search. Templates ensure every %s has a clear, click-worthy snippet automatically. Go to Search appearance, choose your post type, and set default title and meta description patterns.', 'wordpress-seo' ), $post_type->name ) . '</p>',
);
}