Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_rel_nofollow ›

Da1.5.0
Deprecaton/a
wp_rel_nofollow ( $text )
Parametri:
  • (string) $text Content that may contain HTML A elements.
    Richiesto:
Ritorna:
  • (string) Converted content.
Definito a:
Codex:

Adds rel nofollow string to all HTML A elements in content.



Sorgenti

function wp_rel_nofollow( $text ) {
	// This is a pre save filter, so text is already escaped.
	$text = stripslashes( $text );
	$text = preg_replace_callback( '|<a (.+?)>|i', 'wp_rel_nofollow_callback', $text );
	return wp_slash( $text );
}