Hello Joe,
First, you need to remove the default product description and product excerpt by using this code
add_action( 'init', function () {
remove_post_type_support( 'product', 'editor' );
} );
function remove_short_description() {
remove_meta_box( 'postexcerpt', 'product', 'normal');
}
add_action('add_meta_boxes', 'remove_short_description', 999);
Then register two custom fields with the ID content
and excerpt
and put them anywhere in a field group then assign the field group to the Product post type.
$meta_boxes[] = [
'title' => __( 'Product meta', 'your-text-domain' ),
'id' => 'product-meta',
'post_types' => ['product'],
'fields' => [
[
'name' => __( 'Product Content', 'your-text-domain' ),
'id' => 'content',
'type' => 'wysiwyg',
],
[
'name' => __( 'Product Excerpt', 'your-text-domain' ),
'id' => 'excerpt',
'type' => 'wysiwyg',
],
],
];