function wpcf_fix_translated_post_relationships($post_id) { require_once WPCF_EMBEDDED_ABSPATH . '/includes/post-relationship.php'; wpcf_post_relationship_set_translated_parent($post_id); wpcf_post_relationship_set_translated_children($post_id); }
function wpcf_wpml_duplicated_post_relationships($original_post_id, $lang, $postarr, $duplicate_post_id) { require_once WPCF_EMBEDDED_ABSPATH . '/includes/post-relationship.php'; wpcf_post_relationship_set_translated_parent($duplicate_post_id); wpcf_post_relationship_set_translated_children($duplicate_post_id); }