• Resolved Darko G.

    (@darkog)


    Hello, We need to modify this url a bit, but there is no filter! Can you please add a filter?

    Something like this in class-url-convertor.php

    $xdefault_url = apply_filters( 'trp_xdefault_url', esc_url( $this->get_url_for_language( $default_lang ) ), $default_lang );
    echo '<link rel="alternate" hreflang="x-default" href="' . $xdefault_url . '"/>' . "\n";

    Instead of printing it directly:

    echo '<link rel="alternate" hreflang="x-default" href="' . esc_url( $this->get_url_for_language( $default_lang ) ) . '"/>' . "\n";
    
Viewing 1 replies (of 1 total)
  • Hello there,

    We deeply apologize for the delayed response.

    There has been a great load on our support team in the past few days, but such a long reply time is very uncommon.

    I have forwarded this to our team and you should see it implemented in the future versions of TP.

    Thank you for recommending this!

Viewing 1 replies (of 1 total)
  • The topic ‘Filter for xdefault hreflang url’ is closed to new replies.