22
05
2024

wp global text replace

Kategorisi : Wordpress
<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 / 01 / 2025, 16:49:14
Web yazilim, grafik
barbetto.com

Tunalioglu.org - 2015