We'll create fresh WordPress site with Greeklish Slugs installed. You have 20 minutes to test the plugin after that site we'll be deleted.
Convert Greek characters to Latin (greeklish)
Using greeklish-permalinks with some extra functionality.
skp_greeklish_slugs($your_text)
in your template files (good for dynamic css classes etc.)apply_filter('skp_greeklish_slugs_expressions', 'your_callback')
You can use apply_filter('skp_greeklish_slugs_expressions', 'your_callback')
and modify the regex array used to transliterate
<?php
function your_callback( $expressions ) {
// the $expressions parameter is the array with all expressions used
// view the expressions
var_damp( expressions )
// Change/remove items
$new_expressions = array(
...
'/[μΜ][πΠ]/u' => 'mp',
'/[νΝ][τΤ]/u' => 'nt',
'/[τΤ][σΣ]/u' => 'ts'
...
);
// Add them
$expressions = array_merge( $new_expressions, $expressions );
return $expressions;
}
add_filter( 'skp_greeklish_slugs_expressions', 'your_callback' );
?>
Fork on github.