WordPress как на ладони
Очень Удобный и Быстрый Хостинг для сайтов на WordPress. Пользуюсь сам и вам рекомендую!
функция не описана

Yoast\WP\SEO\Actions\Configuration

Configuration_Workout_Action::set_social_profiles() public Yoast 1.0

Stores the values for the social profiles.

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

Хуков нет.

Возвращает

Объект. The response object.

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

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

Код Configuration_Workout_Action::set_social_profiles() Yoast 17.9

public function set_social_profiles( $params ) {
	$failures = [];

	foreach ( self::SOCIAL_PROFILES_FIELDS as $field_name ) {
		if ( isset( $params[ $field_name ] ) ) {
			$result = $this->options_helper->set( $field_name, $params[ $field_name ] );
			if ( ! $result ) {
				/**
				 * The value for Twitter might have been sanitised from URL to username.
				 * If so, $result will be false. We should check if the option value is part of the received value.
				 */
				if ( $field_name === 'twitter_site' ) {
					$current_option = $this->options_helper->get( $field_name );
					if ( ! \strpos( $params[ $field_name ], 'twitter.com/' . $current_option ) ) {
						$failures[] = $field_name;
					}
				}
				else {
					$failures[] = $field_name;
				}
			}
		}
	}

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