Yoast\WP\SEO\Services\Health_Check
Default_Tagline_Reports::get_actions
Returns the actions that the user should take when his tagline is still set to the WordPress default.
Метод класса: Default_Tagline_Reports{}
Хуков нет.
Возвращает
Строку. The actions as an HTML string.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_actions();
Код Default_Tagline_Reports::get_actions() Default Tagline Reports::get actions Yoast 28.3
private function get_actions() {
$query_args = [
'autofocus[control]' => 'blogdescription',
];
$customize_url = \add_query_arg( $query_args, \wp_customize_url() );
return \sprintf(
/* translators: 1: link open tag; 2: link close tag. */
\esc_html__( '%1$sYou can change the tagline in the customizer%2$s.', 'wordpress-seo' ),
'<a href="' . \esc_url( $customize_url ) . '">',
'</a>',
);
}