WPSEO_Addon_Manager::get_icon()
Returns the plugin's icon URL.
Метод класса: WPSEO_Addon_Manager{}
Хуков нет.
Возвращает
Строку
. The icon URL for this plugin.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_icon( $slug );
- $slug(строка) (обязательный)
- The plugin slug.
Код WPSEO_Addon_Manager::get_icon() WPSEO Addon Manager::get icon Yoast 22.4
protected function get_icon( $slug ) { switch ( $slug ) { case self::LOCAL_SLUG: return 'https://yoa.st/local-seo-icon'; case self::NEWS_SLUG: return 'https://yoa.st/news-seo-icon'; case self::PREMIUM_SLUG: return 'https://yoa.st/yoast-seo-icon'; case self::VIDEO_SLUG: return 'https://yoa.st/video-seo-icon'; case self::WOOCOMMERCE_SLUG: return 'https://yoa.st/woo-seo-icon'; } }