• Resolved kerdezo

    (@kerdezo)


    Hi Friends,

    I’m with the latest wp, Hueman and addon.

    In the Appearance > Editor > Hueman childs functions.php
    I have been using this code since long, to change some strings on my site:

    add_filter( 'gettext', 'my_new_text', 20, 3 );
    function my_new_text( $translated_text, $text, $domain ) {
        switch ( $translated_text ) {
            case 'More' :
                $translated_text = __( 'NEW TEXT', 'hueman' );
                break;
    }

    Now I changed an old text to a new text, but ‘NEW TEXT’ is not displaying on frontend, though it is in the editor field. (The above code is a copy-paste part from my present editor field.)
    Still the old text is visible on frontend instead.

    Does appearance > editor surface quit working with updates?
    How/where to change this string?

    kr

    • This topic was modified 8 years ago by kerdezo.
Viewing 1 replies (of 1 total)
  • Thread Starter kerdezo

    (@kerdezo)

    Filter gettext is working OK.

    Sorry for the entry, I just missed the place of the influence.

Viewing 1 replies (of 1 total)
  • The topic ‘Customizaton “filter gettext” not working.’ is closed to new replies.