woocommerce_output_related_products

Output the related products.

Description

woocommerce_output_related_products(); 

Usage

  1. if ( !function_exists( 'woocommerce_output_related_products' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-template-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = woocommerce_output_related_products(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/wc-template-functions.php  
  1. function woocommerce_output_related_products() { 
  2.  
  3. $args = array( 
  4. 'posts_per_page' => 4,  
  5. 'columns' => 4,  
  6. 'orderby' => 'rand',  
  7. ); 
  8.