// Copier le contenu d'une page ou d'un post à la création d'une traduction
function cw2b_content_copy( $content ) {
if ( isset( $_GET['from_post'] ) ) {
$my_post = get_post( $_GET['from_post'] );
if ( $my_post )
return $my_post->post_content;
}
return $content;
}
add_filter( 'default_content', 'cw2b_content_copy' );