| 开发者 | josevarghese |
|---|---|
| 更新时间 | 2026年2月2日 04:09 |
| PHP版本: | 7.2 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
rel="nofollow", rel="noopener", and rel="noreferrer" attributes to external links to protect your site's SEO juice and prevent security vulnerabilities.leaving-notice-popup-for-external-links folder to the /wp-content/plugins/ directoryYes, Leaving Notice Popup is designed to be compatible with all WordPress themes. The popup is added to the page dynamically and does not interfere with your theme's design.
The plugin works for all standard links that lead to external domains. It will not trigger for special links like mailto:, tel:, javascript: or anchor (#) links.
Yes, in the plugin settings you can add domains to a whitelist. Links to these domains will not trigger the leaving notice popup.
Yes, you can add specific URLs to a whitelist in the plugin settings. These exact URLs will not trigger the leaving notice popup.
Yes, you can use the externallinknotice_allowed_pages filter for specific pages (Pages, Posts, Custom Post Types).
Example:
add_filter( 'externallinknotice_allowed_pages', function( $pages ) { return array( 10, 25 ); // Replace with your Page IDs } );
Note: This will ONLY work for singular pages/posts. It will not work for archives or categories.
Yes, for more advanced control, use the externallinknotice_is_enabled filter.
Example:
add_filter( 'externallinknotice_is_enabled', function( $enabled ) { if ( is_home() || is_archive() ) { return true; } return $enabled; } );
No, the popup only appears when users click on links that lead to domains other than your own website.
Yes, the plugin does not collect, store, or process any personal data.
externallinknotice_allowed_pages filter to restrict popup to specific Page IDs, read FAQ for more detailsexternallinknotice_is_enabled filter for advanced control (e.g. Archives, Home, Taxonomies)