Skip to content

Instantly share code, notes, and snippets.

@lloc
Created June 22, 2012 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lloc/2973163 to your computer and use it in GitHub Desktop.
Save lloc/2973163 to your computer and use it in GitHub Desktop.
Code zum Artikel "Multisite Language Switcher ins Menü einbauen" Part 2
<?php
function my_msls_output_get( $url, $item, $current ) {
return sprintf(
'<a href="%s" title="%s"%s>%s</a>',
$url,
$item->txt,
( $current ? ' class="current"' : '' ),
$item
);
}
add_filter( 'msls_output_get', 'my_msls_output_get', 10, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment