Viewing 1 replies (of 1 total)
  • Plugin Author Chouby

    (@chouby)

    Hello,

    You have the filter pll_rel_hreflang_attributes which allows you to modify the links outputed by Polylang.

    For example:

    
    add_filter( 'pll_rel_hreflang_attributes', function( $hreflangs ) {
    	$hreflangs['x-default'] = $hreflangs['en'];
    	return $hreflangs;
    } );
    
Viewing 1 replies (of 1 total)
  • The topic ‘xhreflang link to the default language’ is closed to new replies.