[WordPress] 外掛分享: External Links – nofollow, noopener & new window

首頁外掛目錄 › External Links – nofollow, noopener & new window
WordPress 外掛 External Links – nofollow, noopener & new window 的封面圖片
90,000+
安裝啟用
★★★★
4.3/5 分(247 則評價)
105 天前
最後更新
33%
問題解決
WordPress 4.2+ PHP 7.2+ v2.63 上架:2011-02-26

內容簡介

管理網站上的所有內部和外部連結,控制圖示、nofollow、noopener、ugc(用戶生成內容)、贊助和鏈接是否在新窗口或新標籤中開啟。

WP Links 插件在 v2 中得到了完全重建,具有許多新功能,例如 rel 的 noopener、ugc 和 sponsored 值;字體圖示、內部鏈接選項以及完整的 WPMU 支持。

連結掃描器-專業版功能

檢查網站上的每個單獨的連結!查看它是否失效,是否重定向,目標和 rel 屬性以及它確切鏈接到哪個頁面。此功能是「WP Links 」專業版插件的一部分。

特點

管理內外部鏈結
設置連結在新窗口或新標籤中開啟
添加 follow 或 nofollow(用於 SEO)
添加 noopener 和 noreferrer(用於安全)
添加 ugc(用戶生成內容)和 sponsored 值到 rel(Google 声明)
添加連結圖示(FontAwesome 和 Dashicons)
設置其他屬性,如標題和 CSS 類
掃描整個頁面(或僅限帖子、評論、小工具)
支援 SEO
連結掃描器-檢查網站所有連結-專業版功能
離開確認-在點擊外部鏈接時保護訪問者和流量-專業版功能
連結規則-為選定的連結組創建高級連結規則-專業版功能

還有更多...

網絡設置(WPMU 支持)
使用模板標記在特定內容中應用插件設置
設置數據屬性以更改單個鏈接的處理方式
使用內置的操作和過濾器實現您的特定需求

易於使用

啟用後,可以在插件管理頁面上設置所有內部和外部鏈接的選項。

即時處理

插件會在輸出時過濾並即時更改鏈接。真正的內容(帖子、頁面、小工具等)不會在數據庫中被更改。
當停用插件時,所有內容都將與之前相同。

GDPR 兼容性

我們不是律師。請不要把以下內容當作法律建議。
WP External Links 不跟踪、收集或處理任何用戶數據。沒有任何日誌或推送到任何第三方。我們也不使用任何第三方服務或 CDN。基於這一點,我們認為它符合 GDPR,但請不要把這當作法律建議。

喜歡這個插件嗎?給它評分以支持開發。

如果 SSL 或 HTTPS 出現問題,請嘗試使用我們免費的WP Force SSL插件。這是啟用 SSL 和修復 SSL 問題的好方法。

文檔

啟用後,可以設置所有內部和外部鏈接的選項。

數據屬性 "data-wpel-link"

被此插件處理的鏈接還包含數據屬性 data-wpel-link。
此插件可能將值設置為 external、internal 或 exclude,表示連結如何
被處理。

您也可以自己設置數據屬性。這樣可以強制指定某些連結的處理方式。
當您添加值 ignore 時,該鏈接將被跳過。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.63) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「External Links – nofollow, noopener & new window」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Manage all external & internal links on your site. Control icons, nofollow, noopener, ugc (User Generated Content), sponsored and if links open in new window or new tab.
WP Links plugin was completely rebuilt in v2 and has lots of new features, like noopener, ugc and sponsored values for rel; font icons, internal links options and full WPMU support.
Link Scanner – PRO feature
Check every single link on your site! See if it’s broken or not, if it’s redirected, what’s the target and rel attribute and what page exactly it’s linking to. This feature is a part of the WP Links PRO plugin.
Features

Manage external and internal links
Open links in new window or tab
Add follow or nofollow (for SEO)
Add noopener and noreferrer (for security)
Add ugc (User Generated Content) and sponsored values to rel (Google announcement)
Add link icons (FontAwesome and Dashicons)
Set other attributes like title and CSS classes
Scan complete page (or just posts, comments, widgets)
SEO friendly
Link Scanner – check all links on your site – PRO feature
Exit Confirmation – protect visitors and traffic when external links are clicked – PRO feature
Link Rules – create advanced link rules for chosen link groups – PRO feature

And more…

Network Settings (WPMU support)
Use template tag to apply plugin settings on specific contents
Set data-attribute to change how individual links will be treated
Use built-in actions and filters to implement your specific needs

Easy to use
After activating you can set all options for external and internal links on the plugins admin page.
On the fly
The plugin filters the output and changes the links on the fly. The real contents (posts, pages, widget etcetera) will not be changed in the database.
When deactivating the plugin, all contents will be the same as it was before.
GDPR compatibility
We are not lawyers. Please do not take any of the following as legal advice.
WP External Links does not track, collect or process any user data. Nothing is logged or pushed to any 3rd parties. We also don’t use any 3rd party services or CDNs. Based on that, we feel it’s GDPR compatible, but again, please, don’t take this as legal advice.
Like the plugin? Rate it to support the development.
If you’re having problems with SSL or HTTPS try our free WP Force SSL plugin. It’s a great way to enable SSL and fix SSL problems.
Documentation
After activating you can set all options for external and internal links.
Data attribute “data-wpel-link”
Links being processed by this plugin will also contain the data-attribute data-wpel-link.
The plugin could set the value to external, internal or exclude, meaning how the
link was processed.
You can also set the data-attribute yourself. This way you can force how the plugin will process
certain links.
When you add the value ignore, the link will be completely ignored by the plugin:
Go to somedomain

Action “wpel_link”
Use this action to change the link object after all plugin settings have been applied.
add_action( 'wpel_link', ( $link_object ) {
if ( $link_object->is_external() ) {
// get current url
$url = $link_object->getAttribute( 'href' );

// set redirect url
$redirect_url = '//somedom.com?url='. urlencode( $url );
$link_object->setAttribute( 'href', $redirect_url );
}
}, 10, 1 );

The link object is an instance of WPEL_Link class.
Action hook “wpel_before_apply_link”
Use this action to change the link object before the plugin settings will be applied on the link.
You can use this filter f.e. to ignore individual links from being processed. Or change dynamically how
they will be treated by this plugin.
add_action( 'wpel_before_apply_link', function ( $link ) {
// ignore links with class "some-cls"
if ( $link->has_attr_value( 'class', 'some-cls' ) ) {
$link->set_ignore();
}

// mark and treat links with class "ext-cls" as external link
if ( $link->has_attr_value( 'class', 'ext-cls' ) ) {
$link->set_external();
}
}, 10 );

Filter hook “wpel_apply_settings”
When filter returns false the plugin settings will not be applied. Can be used when f.e. certain posts or pages should be ignored by this plugin.
add_filter( 'wpel_apply_settings', '__return_false' );

See FAQ for more info.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon