I have this code and it creates a product but no price and image. I tried to replace each on array with default value but still it does not add image and price. What is wrong with this code/array? Thanks!
$products_array = array(
"product"=>array(
"title"=> "title",
"body_html"=> "description",
"vendor"=> "vendor",
"product_type"=> "type",
"published"=> false ,
"variants" => array
(
array
(
"price" => 15.00,
)
),
"images" => array(
array(
"src" => "https://example.com/wp-content/uploads/2019/06/PIC2-3.jpg",
)
)
)
);