Parfois il peut être utile de renommer le post type de base de DIVI « Project » pour un client.
Rien de plus simple : Ajouter le code ci-dessous dans votre theme enfant dans le fichier functions.php
/*Changer le nom de projet divi*/
function johann_divi_project() {
register_post_type( 'project',
array(
'labels' => array(
'name' => __( 'Tours', 'divi' ),
'singular_name' => __( 'Tour', 'divi' ),
),
'has_archive' => true,
'hierarchical' => true,
'public' => true,
'rewrite' => array( 'slug' => 'tour', 'with_front' => false ),
'supports' => array(),
));
}
add_action( 'init', 'johann_divi_project' );
source : https://adamhaworth.com/
