WPDev.one
Core Function
View Source on Trac ↗

wp_rel_ugc()

wp_rel_ugc( mixed $text )

Adds `rel="nofollow ugc"` string to all HTML A elements in content.

Parameters 1 required

Name / Type Description
$text
string

Content that may contain HTML A elements.

Required

Return Value

(string)
Converted content.

Function Information

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