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 ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



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