WPSEO_Post_Metabox_Formatter::get_social_template()privateYoast 1.0

Retrieves a social template.

Метод класса: WPSEO_Post_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_Post_Metabox_Formatter::get_social_template() Yoast 22.4

private function get_social_template( $template_option_name ) {
	/**
	 * Filters the social template value for a given post type.
	 *
	 * @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 $post_type            The name of the post type.
	 */
	return apply_filters( 'wpseo_social_template_post_type', '', $template_option_name, $this->post->post_type );
}