Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_rel_nofollow [ WordPress Function ]

wp_rel_nofollow ( $text )
Parameters:
  • (string) $text Content that may contain HTML A elements.
Returns:
  • (string) Converted content.
Defined at:



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

Source


<?php
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);
    
$text esc_sql($text);
    return 
$text;
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics