Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 504799

Customizaton “filter gettext” not working.

$
0
0

Replies: 0

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 the “old text” to “new text”, but ‘NEW TEXT’ is not displaying on frontend, though it is in the editor field.
Still the old text is visible on frontend instead.

Does appearence > editor surface quit working with updates?
How to change this string?

kr


Viewing all articles
Browse latest Browse all 504799

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>