WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Получай пассивный доход от сайта
функция не описана

Yoast\WP\SEO\Integrations\Admin

Social_Templates_Integration::social_post_type() public Yoast 1.0

Build a set of social fields for the post types in the Search Appearance section.

{} Это метод класса: Social_Templates_Integration{}

Хуков нет.

Возвращает

null. Ничего.

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

$Social_Templates_Integration = new Social_Templates_Integration();
$Social_Templates_Integration->social_post_type( $yform, $post_type_name );
$yform(Yoast_Form) (обязательный)
The form builder.
$post_type_name(строка) (обязательный)
The name of the current post_type that gets the social fields added.

Код Social_Templates_Integration::social_post_type() Yoast 16.8

<?php
public function social_post_type( $yform, $post_type_name ) {
	if ( $post_type_name === 'attachment' ) {
		return;
	}

	$page_type_recommended = $this->get_admin_recommended_replace_vars()->determine_for_post_type( $post_type_name );
	$page_type_specific    = $this->get_admin_editor_specific_replace_vars()->determine_for_post_type( $post_type_name );

	$this->build_social_fields( $yform, $post_type_name, $page_type_recommended, $page_type_specific );
}