Switch language

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




_links_add_target [ WordPress Function ]

_links_add_target ( $m )
Access:
  • private
Parameters:
  • (string) $m The matched link.
Returns:
  • (string) The processed link.
Defined at:



Callback to add a target attribute to all links in passed content.

Source


<?php
function _links_add_target$m ) {
    global 
$_links_add_target;
    
$tag $m[1];
    
$link preg_replace('|(target=[\'"](.*?)[\'"])|i'''$m[2]);
    return 
'<' $tag $link ' target="' esc_attr$_links_add_target ) . '">';
}
?>

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