Yoast\WP\SEO\Services\Importing\Aioseo

Aioseo_Social_Images_Provider_Service::get_default_custom_social_image()publicYoast 1.0

Retrieves the default custom social image if there is any.

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

Хуков нет.

Возвращает

Строку. The global default social image.

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

$Aioseo_Social_Images_Provider_Service = new Aioseo_Social_Images_Provider_Service();
$Aioseo_Social_Images_Provider_Service->get_default_custom_social_image( $social_setting );
$social_setting(строка) (обязательный)
The social settings we're working with, eg. open-graph or twitter.

Код Aioseo_Social_Images_Provider_Service::get_default_custom_social_image() Yoast 22.4

public function get_default_custom_social_image( $social_setting ) {
	return $this->get_social_defaults( 'custom_image', $social_setting );
}