Switch language

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




capital_p_dangit [ WordPress Function ]

capital_p_dangit ( $text )
Defined at:



Forever eliminate "Wordpress" from the planet (or at least the little bit we can influence).

Violating our coding standards for a good function name.

Source


<?php
function capital_P_dangit$text ) {
    
// Simple replacement for titles
    
if ( 'the_title' === current_filter() )
        return 
str_replace'Wordpress''WordPress'$text );
    
// Still here? Use the more judicious replacement
    
static $dblq false;
    if ( 
false === $dblq )
        
$dblq _x('&#8220;''opening curly quote');
    return 
str_replace(
        array( 
' Wordpress''&#8216;Wordpress'$dblq 'Wordpress''>Wordpress''(Wordpress' ),
        array( 
' WordPress''&#8216;WordPress'$dblq 'WordPress''>WordPress''(WordPress' ),
    
$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