Title: filter all links
Last modified: August 19, 2016

---

# filter all links

 *  [ext103](https://wordpress.org/support/users/ext103/)
 * (@ext103)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/filter-all-links-1/)
 * hello all,
 * i am aftr a bit of help.
 * i am working on a plugin right now that adds a exit popup to wordpress.
 * i have this working fine except now i want to stop the popup happening when navigating
   through the site.
 * all i have to do for this is add a onclick=”isExit = false” to each link.
 * i want to do this on all local links.
 * i have a function for the content which sort that bit out, but i also need to
   taget all links generated by
 * menus
    widgets tags categorys admin link etc etc.
 * is there any way to target all wordpress generated links?
 * for example right now i can filter the tag cloud like this:
 *     ```
       function ssep_nopop_tag($text) {
       	return str_replace('<a href=', '<a onclick="isExit = false" href=',  $text);
       }
   
       add_filter('wp_tag_cloud', 'ssep_nopop_tag');
       ```
   
 * i need to do this for all wordpress generated links.

The topic ‘filter all links’ is closed to new replies.

## Tags

 * [function](https://wordpress.org/support/topic-tag/function/)
 * [links](https://wordpress.org/support/topic-tag/links/)
 * [popup](https://wordpress.org/support/topic-tag/popup/)

 * 0 replies
 * 1 participant
 * Last reply from: [ext103](https://wordpress.org/support/users/ext103/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/filter-all-links-1/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
