WPDev.one
Core Function
View Source on Trac ↗

_make_clickable_rel_attr()

_make_clickable_rel_attr( mixed $url )

Helper function used to build the "rel" attribute for a URL when creating an anchor using make_clickable().

Parameters 1 required

Name / Type Description
$url
string

The URL.

Required

Return Value

(string)
The rel attribute for the anchor or an empty string if no rel attribute should be added.

Function Information

Since Version
6.2.0
Source File
wp-includes/formatting.php
Advertisement