Obtenez des produits dans WordPress
$args = array(
'post_type' => 'product',
'posts_per_page' => -1 );
$products = get_posts( $args );
Usama Ashraf
$args = array(
'post_type' => 'product',
'posts_per_page' => -1 );
$products = get_posts( $args );