Replace Any Text

 Just replace FUNCTION_NAME with unique function name and place in functions.php file.

   

add_filter( 'gettext', 'replace_FUNCTION_NAME_text' );

function replace_FUNCTION_NAME_text( $text ){

    if( $text === 'Any category' ) {
        $text = 'Any Subject';
    }

    return $text;
}

 

ANOTHER FUNCTION BELOW

 

add_filter('gettext', 'translate_text'); 
add_filter('ngettext', 'translate_text');

function translate_text($translated) { 
$translated = str_ireplace('each month', 'per month', $translated);
$translated = str_ireplace('on the', '', $translated); 
$translated = str_ireplace('of', '', $translated); 
return $translated; 
}  

 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article