Translitaration of greek characters to latin for post permalinks with some extra options. (greeklish)
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.
.
*Added uninstall file
*Code cleanup
*Added greek transaltions
*Added regex array filter