This function has been deprecated.

popuplinks( string $text )

Adds element attributes to open links in new windows.


Parameters

$text

(string) (Required) Content to replace links to open in a new window.


Return

(string) Content that has filtered links.


Source

File: wp-includes/deprecated.php

function popuplinks( $text ) {
	_deprecated_function( __FUNCTION__, 'WP-4.5.0' );
	$text = preg_replace('/<a (.+?)>/i', "<a $1 target='_blank' rel='external'>", $text);
	return $text;
}


Changelog

Changelog
Version Description
WP-4.5.0 This function has been deprecated.
WP-0.71 Introduced. This function has been deprecated.