function rename_project_cpt() {
register_post_type( 'project',
array(
'labels' => array(
'name' => __( 'Brokers', 'divi' ), // change the text portfolio to anything you like
'singular_name' => __( 'Brokers', 'divi' ), // change the text portfolio to anything you like
),
'has_archive' => true,
'hierarchical' => true,
'menu_icon' => 'dashicons-images-alt2', // you choose your own dashicon
'public' => true,
'rewrite' => array( 'slug' => 'brokers', 'with_front' => false ), // change the text portfolio to anything you like
'supports' => array(),
));
}
add_action( 'init', 'rename_project_cpt' );