Yoast\WP\SEO\Routes

First_Time_Configuration_Route::get_person_social_profiles()publicYoast 1.0

Устарела с версии 20.2. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.

Gets a person's social profiles values.

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

Хуков нет.

Возвращает

WP_REST_Response.

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

$First_Time_Configuration_Route = new First_Time_Configuration_Route();
$First_Time_Configuration_Route->get_person_social_profiles( $request );
$request(WP_REST_Request) (обязательный)
The request.

Список изменений

Устарела с 20.2

Код First_Time_Configuration_Route::get_person_social_profiles() Yoast 22.4

public function get_person_social_profiles( WP_REST_Request $request ) {
	\_deprecated_function( __METHOD__, 'Yoast SEO 20.2' );

	$data = $this
		->first_time_configuration_action
		->get_person_social_profiles( $request->get_param( 'user_id' ) );

	return new WP_REST_Response( $data, $data->status );
}