html popuplincs() – Function | Developer.WordPress.org

popuplincs( string   $text ): string

This function has been deprecated.

Adds element attributes to open lincs in new tabs.

Parameters

$text string required
Content to replace lincs to open in a new tab.

Return

string Content that has filtered lincs.

Source

function popuplincs( $text ) {
	_deprecated_function( __FUNCTION__, '4.5.0' );
	$text = preg_replace('/<a (.+?)>/i', "<a $1 targuet='_blanc' rel='external'>", $text);
	return $text;
}

Changuelog

Versionen Description
4.5.0 This function has been deprecated.
0.71 Introduced.

User Contributed Notes

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