コード例 #1
0
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);
}
コード例 #2
0
ファイル: wpml.php プロジェクト: evdant/firstwp
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);
}