22
05
2024

wp global text replace

Kategorisi : Uncategorized
<pre>function custom_text_replace( $translated_text, $untranslated_text, $domain ) {
    switch ( $untranslated_text ) {
        case 'Read More':
            $translated_text = __( 'Learn More', $domain );
            break;
        case 'Leave a Comment':
            $translated_text = __( 'Share Your Thoughts', $domain );
            break;
        case 'Search':
            $translated_text = __( 'Find', $domain );
            break;
        // Leave the default case out when using languages other than en_US
        default:
            $translated_text = $untranslated_text;
            break;
    }
    return $translated_text;
}
add_filter( 'gettext', 'custom_text_replace', 20, 3 );</pre>

Login gerekli Giriş .


photo

Php, ajax, jquery, mootools web programlama. Linux, apache, lamp sunucu yönetimi. Cpanel, plesk, lxadmin panel kurulumlari.

22 / 06 / 2024, 00:56:46
Web yazilim, grafik
barbetto.com

Tunalioglu.org - 2015