WordPress.org

Ready to get started?Download WordPress

Plugin Directory

WP External Links (nofollow new window seo)

Open external links in a new window or tab, adding "nofollow", set link icon, styling, SEO friendly options and more. Easy install and go.

Documentation

After activating the plugin all options are already set to make your external links SEO friendly. Optionally you can also set the target for opening in a new window or tab or styling options, like adding an icon.

Action hook: wpel_ready

The plugin also has a hook when ready, f.e. to add extra filters:

function extra_filters($filter_callback, $object) {
    add_filter('some_filter', $filter_callback);
}
add_action('wpel_ready', 'extra_filters');

Filter hook 1: wpel_external_link

The wpel_external_link filter gives you the possibility to manipulate output of the mailto created by the plugin, like:

function special_external_link($created_link, $original_link, $label, $attrs, $is_ignored_link) {
    // skip links that contain the class "not-external"
    if (isset($attrs['class']) && strpos($attrs['class'], 'not-external') !== false) {
        return $original_link;
    }

    return '<b>'. $created_link .'</b>';
}

add_filter('wpel_external_link', 'special_external_link', 10, 5);

Now all external links will be processed and wrapped around a <b>-tag. And links containing the class "not-external" will not be processed by the plugin at all (and stay the way they are).

Filter hook 2: wpel_internal_link

With the internal filter you can manipulate the output of the internal links on your site. F.e.:

function special_internal_link($link, $label, $attrs) {
    return '<b>'. $link  .'</b>';
}

add_filter('wpel_internal_link', 'special_internal_link', 10, 3);

In this case all internal links will be made bold.

Credits

Requires: 3.4.0 or higher
Compatible up to: 3.9.1
Last Updated: 2014-6-21
Downloads: 86,657

Ratings

4 stars
4.4 out of 5 stars

Support

3 of 8 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

3 people say it works.
0 people say it's broken.

100,1,1 100,1,1 100,1,1 100,2,2 100,1,1 50,2,1
100,1,1 0,1,0 100,3,3
0,1,0 100,2,2 38,8,3
50,2,1
50,2,1 60,5,3
0,3,0 100,3,3 50,2,1
100,2,2
100,2,2
100,3,3
67,3,2 100,1,1
33,3,1 100,1,1 100,1,1 100,4,4
100,2,2
100,1,1
100,2,2
100,1,1 100,2,2
100,3,3
0,1,0 100,1,1
100,1,1
100,1,1
100,1,1 100,1,1 100,1,1 100,3,3