add a hook for hreflang?
-
in frontend-links.php I need to alter the hreflang before output.
Would you mind adding a filter hook just before you output?
// ouptputs the section only if there are translations ($urls always contains self link) if (!empty($urls) && count($urls) > 1) { foreach ($urls as $lang => $url) $lang = apply_filters('link_alt_hreflang', $lang); printf('<link rel="alternate" href="%s" hreflang="%s" />'."\n", esc_url($url), esc_attr($lang)); }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘add a hook for hreflang?’ is closed to new replies.