This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/************************************************************************************************** | |
* | |
* ACF / WPML translate relationship fields | |
* | |
*************************************************************************************************/ | |
add_filter( 'wpml_duplicate_generic_string', 'my_override_post_duplication', 10, 3 ); | |
function my_override_post_duplication( $value_to_filter, $target_language, $meta_data ) { | |
if ( isset($_POST['icl_ajx_action']) && $_POST['icl_ajx_action'] == "make_duplicates"){ |