Yoast\WP\SEO\Helpers
Social_Profiles_Helper::get_non_valid_url()
Checks if url 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 url is about to update.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_non_valid_url( $url, $url_setting );
- $url(строка) (обязательный)
- The url to be validated.
- $url_setting(строка) (обязательный)
- The name of the setting to be updated with the url.
Код Social_Profiles_Helper::get_non_valid_url() Social Profiles Helper::get non valid url Yoast 24.4
protected function get_non_valid_url( $url, $url_setting ) { if ( $this->options_helper->is_social_url_valid( $url ) ) { return []; } return [ $url_setting ]; }