Hi Emili (aka @dinamiko),
Thanks for your great contribution.
A note for the previous piece of code: it would finish with “10, 2” instead of “2, 10” (where $priority is 10, $accepted_args is 2):
add_filter('mlp_hreflang_html', function ($html, $lang) {
if ($lang === 'en-US') {
$html = str_replace('hreflang="en-US"', 'hreflang="en"', $html);
}
return $html;
}, 10, 2);
Salutacions ??
David.
-
This reply was modified 6 years, 2 months ago by simpleswebs.
-
This reply was modified 6 years, 2 months ago by simpleswebs.