Skip to main content
The cart is empty

How to translate Eventin

The Eventin plugin can be translated like other plugin with Falang, only the link in the Agenda display need to be fixed

The event translation list add the Falang translation Flags

For this you have to add in your function.php of your template need to be added

function falang_post_type_link ($post_link, $post, $leavename, $sample){
  if (isset($post) && $post->post_type == 'etn'){
    $post_link = str_replace('%etn-slug%','etn',$post_link);
  }
  return $post_link;
 }

add_filter( 'post_type_link', 'falang_post_type_link', 10, 4 );

Eventin