filter all links
-
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.