WPSEO_Term_Metabox_Formatter::get_template()
Retrieves a template.
Метод класса: WPSEO_Term_Metabox_Formatter{}
Хуков нет.
Возвращает
Строку
.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_template( $template_option_name );
- $template_option_name(строка) (обязательный)
- The name of the option in which the template you want to get is saved.
Код WPSEO_Term_Metabox_Formatter::get_template() WPSEO Term Metabox Formatter::get template Yoast 22.4
private function get_template( $template_option_name ) { $needed_option = $template_option_name . '-tax-' . $this->term->taxonomy; return WPSEO_Options::get( $needed_option, '' ); }