Function __global->find_all_products

Definitions

sources/ecommerce.php

  • Find all products, except ones from hooks that might have too many to list (so don't rely on this for important backend tasks).
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Returns

  • A list of maps of product details. 'product_object' is added to each detail map.
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find all products, except ones from hooks that might have too many to list (so don't rely on this for important backend tasks).
 *
 * @return array A list of maps of product details. 'product_object' is added to each detail map.
 */

function find_all_products() : array