Switch language

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




wp_rel_nofollow_callback [ WordPress Function ]

wp_rel_nofollow_callback ( $matches )
Parameters:
  • (array) $matches Single Match
Returns:
  • (string) HTML A Element with rel nofollow.
Defined at:



Callback to used to add rel=nofollow string to HTML A element.

Will remove already existing rel="nofollow" and rel='nofollow' from the string to prevent from invalidating (X)HTML.

Source


<?php
function wp_rel_nofollow_callback$matches ) {
    
$text $matches[1];
    
$text str_replace(array(' rel="nofollow"'" rel='nofollow'"), ''$text);
    return 
"<a $text rel=\"nofollow\">";
}
?>

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