set product description programmatically in WordPress woo-commerce

Add the following code in your php code file: set product description programmatically in WordPress woo-commerceexpoundsofttechsolution set product description programmatically in WordPress woo-commerce

$target_product = wc_get_product( $product_id );

// Set the description
$target_product ->set_description('This is the <strong>product description</strong> content.');

$target_product ->save();