WPSEO_Suggested_Plugins::create_more_information_link()
Creates a more information link that directs the user to WordPress.org Plugin repository.
Метод класса: WPSEO_Suggested_Plugins{}
Хуков нет.
Возвращает
Строку
. The more information link.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->create_more_information_link( $url, $name );
- $url(строка) (обязательный)
- The URL to the plugin's page.
- $name(строка) (обязательный)
- The name of the plugin.
Код WPSEO_Suggested_Plugins::create_more_information_link() WPSEO Suggested Plugins::create more information link Yoast 24.3
protected function create_more_information_link( $url, $name ) { return sprintf( '<a href="%s" aria-label="%s" target="_blank" rel="noopener noreferrer">', $url, /* translators: Hidden accessibility text; %1$s expands to the dependency name */ sprintf( __( 'More information about %1$s', 'wordpress-seo' ), $name ) ); }