• Hi Alex @alexgff,

    This is a follow-up to this request:

    https://www.ads-software.com/support/topic/compatibility-with-bp-profile-search/

    As I explained there, I don’t feel very comfortable using the filter ‘the_title’, because all the other callbacks meant for real titles (the WP default ones, and those possibly added by themes and plugins) will be applied to my strings, which are not titles at all.

    Would you consider adding another filter, e.g. ‘wp_globus’, to perform the translations as ‘the_title’ does? So I could use ‘wp_globus’ without worrying about the possible side effects of ‘the_title’.

    Thank you,
    Andrea

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Alex Gor

    (@alexgff)

    you can use

    
    $text_in_current_language = WPGlobus_Core::text_filter( $text, WPGlobus::Config()->language );
    

    To get more info please refer to file
    wpglobus\includes\class-wpglobus-core.php

    • This reply was modified 7 years, 11 months ago by Alex Gor.
    Thread Starter Andrea Tarantini

    (@dontdream)

    @alexgff That’s great, thank you very much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘compatibility with BP Profile Search’ is closed to new replies.