Yoast\WP\SEO\Actions\Configuration

First_Time_Configuration_Action::set_social_profiles()publicYoast 1.0

Stores the values for the social profiles.

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

Хуков нет.

Возвращает

Объект. The response object.

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

$First_Time_Configuration_Action = new First_Time_Configuration_Action();
$First_Time_Configuration_Action->set_social_profiles( $params );
$params(массив) (обязательный)
The values to store.

Код First_Time_Configuration_Action::set_social_profiles() Yoast 19.2

public function set_social_profiles( $params ) {
	$failures = $this->social_profiles_helper->set_organization_social_profiles( $params );

	if ( empty( $failures ) ) {
		return (object) [
			'success' => true,
			'status'  => 200,
		];
	}

	return (object) [
		'success'  => false,
		'status'   => 200,
		'error'    => 'Could not save some options in the database',
		'failures' => $failures,
	];
}