Warning: This function has been deprecated.

popuplinks( string $text )

Adds element attributes to open links in new windows.


Description Description


Parameters Parameters

$text

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


Top ↑

Return Return

(string) Content that has filtered links.


Top ↑

Source Source

File: wp-includes/deprecated.php

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


Top ↑

Changelog Changelog

Changelog
Version Description
0.71 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note.