 siew-funC
|
Hello,
I have created two dummy events in the sandbox.
|
 Shekhar Bhandari
WPML Supporter since 03/2015
Languages:
English (English )
Timezone:
Asia/Kathmandu (GMT+05:45)
|
Hello,
I wanted to let you know that I’ve escalated the issue to our compatibility team. I’ll keep you updated as soon as I receive any feedback from them.
Thanks.
|
 Shekhar Bhandari
WPML Supporter since 03/2015
Languages:
English (English )
Timezone:
Asia/Kathmandu (GMT+05:45)
|
Hello there,
Our compatibility team checked the issue and suggested the following workarround for now:
- Go to wp-content/plugins/wp-event-manager/external/wpml.php
- Add the following code at the end of the file
// wpmltriage-4054
add_filter( 'wpem_wpml_current_language', function( $empty_value ) {
return apply_filters( 'wpml_current_language', null );
} );
add_filter( 'wpem_wpml_object_id', function( $element_id, $element_type, $return_original_if_missing = false, $language_code = null ) {
return apply_filters( 'wpml_object_id', $element_id, $element_type, $return_original_if_missing, $language_code );
}, 10, 4 );
add_action( 'wpem_wpml_switch_language', function( $language_code ) {
do_action( 'wpml_switch_language', $language_code );
} );
This should fix the issue, look forward to your reply.
Thanks
|