Skip to content

Commit

Permalink
Debug Woo image
Browse files Browse the repository at this point in the history
  • Loading branch information
w3bdesign committed Sep 14, 2020
1 parent 27b982d commit f097970
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions classes/class-algolia-woo-indexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,10 @@ function () {
/**
* Extract image from $product->get_image()
*/

print_r ( $product->get_image());


preg_match_all( '/<img.*?src=[\'"]( . * ? )[\'"].*?>/i', $product->get_image(), $matches );
$product_image = implode( $matches[1] );
/**
Expand Down

0 comments on commit f097970

Please sign in to comment.