WPSEO_Term_Metabox_Formatter::get_social_template()privateYoast 1.0

Retrieves a social template.

Метод класса: WPSEO_Term_Metabox_Formatter{}

Хуки из метода

Возвращает

Строку.

Использование

// private - только в коде основоного (родительского) класса
$result = $this->get_social_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_social_template() Yoast 22.4

private function get_social_template( $template_option_name ) {
	/**
	 * Filters the social template value for a given taxonomy.
	 *
	 * @param string $template             The social template value, defaults to empty string.
	 * @param string $template_option_name The subname of the option in which the template you want to get is saved.
	 * @param string $taxonomy             The name of the taxonomy.
	 */
	return apply_filters( 'wpseo_social_template_taxonomy', '', $template_option_name, $this->term->taxonomy );
}