Skip Navigation

Tagged: 

This topic contains 0 reply, has 1 voice.

Last updated by Zotezo Com 1 year, 9 months ago.

Assisted by: Long Nguyen.

Author Posts
October 16, 2023 at 7:35 am

Zotezo Com

Hello, I'm using below snippet for a purpose

$trid = apply_filters( 'wpml_element_trid', NULL, $object->ID, 'post_top10' );
$translations = apply_filters( 'wpml_get_element_translations', NULL, $trid, 'post_top10' );

but surprisingly getting other posttypes too in $translations

October 16, 2023 at 9:09 am

The topic ‘[Closed] The code snippet is getting other posttypes too in $translations’ is closed to new replies.