Filter for xdefault hreflang url
-
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)
Viewing 1 replies (of 1 total)
- The topic ‘Filter for xdefault hreflang url’ is closed to new replies.