Yoast\WP\SEO\Editors\Framework\Seo\Posts
Social_Data_Provider::get_social_template
Retrieves a social template.
Метод класса: Social_Data_Provider{}
Хуки из метода
Возвращает
Строку.
Использование
// 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.
Код Social_Data_Provider::get_social_template() Social Data Provider::get social template Yoast 28.0
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 );
}