• Resolved vineryap

    (@vineryap)


    Hi, How can I translate the frontend notification?

    View post on imgur.com

    and the permalink for the property title is also inheriting the language code

    for example, if the property title is set to “test” then after submitting the property from the frontend the permalink for the submitted property will be “entest”

    Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @vineryap
    Find the code for generate the message. Find filter if it exist for filtering the post title and translate the title using ‘wpm_translate_string’.

    Thread Starter vineryap

    (@vineryap)

    Hi @valexar thank you for replying.
    I found the code for the notification here

    View post on imgur.com

    And I tried add_filter ( 'property_id', 'wpm_translate_string' ); on the child-theme function.php file but it’s not working, it’s still showing [:en] sign

    As I see here no filter for filtering post title. Can You redeclare the template in your theme?
    And then replace $property->post_title with apply_filters('post_title', $property->post_title).

    • This reply was modified 6 years, 9 months ago by VaLeXaR.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Translate Frontend Notification’ is closed to new replies.