Yoast\WP\SEO\Editors\Framework\Seo\Terms
Abstract_Term_Seo_Data_Provider::get_template()
Retrieves a template.
Метод класса: Abstract_Term_Seo_Data_Provider{}
Хуков нет.
Возвращает
Строку
.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_template( $template_option_name ): string;
- $template_option_name(строка) (обязательный)
- The name of the option in which the template you want to get is saved.
Код Abstract_Term_Seo_Data_Provider::get_template() Abstract Term Seo Data Provider::get template Yoast 25.1
protected function get_template( string $template_option_name ): string { $needed_option = $template_option_name . '-tax-' . $this->term->taxonomy; return WPSEO_Options::get( $needed_option, '' ); }