Yoast\WP\SEO\Helpers
Social_Profiles_Helper::get_non_valid_twitter()
Checks if the twitter value is not valid and returns the name of the setting if it's not.
Метод класса: Social_Profiles_Helper{}
Хуков нет.
Возвращает
Массив
. An array with the setting that the non-valid twitter value is about to update.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_non_valid_twitter( $twitter_site, $twitter_setting );
- $twitter_site(массив) (обязательный)
- The twitter value to be validated.
- $twitter_setting(строка) (обязательный)
- The name of the twitter setting to be updated with the value.
Код Social_Profiles_Helper::get_non_valid_twitter() Social Profiles Helper::get non valid twitter Yoast 24.3
protected function get_non_valid_twitter( $twitter_site, $twitter_setting ) { if ( $this->options_helper->is_twitter_id_valid( $twitter_site, false ) ) { return []; } return [ $twitter_setting ]; }