Replacing specified texts like breadcrumbs
-
Hi,
I am creating multi-language site (Polish and German for now) by post-formats created with plugin.I want to be able to translate texts from settings of WordPress SEO by Yoast plugin, like prefixes at admin.php?page=wpseo_internal-links etc.
For translating I am using this (function for checking link):
if (is_de()) /* do something */ else /* do something */
It’s possible to get access to this texts and replace these, like this (changing menus before print):
add_filter('wp_nav_menu_objects', 'current_page_menu');
so, for example:function current_page_menu($items) { for ($i = 1; $i <= count($items); $i++) { $items[$i]->url =
Thanks in advance for answer.
Greetings
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Replacing specified texts like breadcrumbs’ is closed to new replies.