Merge pull request #9324 from shivapoudel/shortcodes

Docblock for related products
This commit is contained in:
Claudio Sanches 2015-10-08 23:40:20 -03:00
commit 090de0c6a7
1 changed files with 3 additions and 2 deletions

View File

@ -786,14 +786,15 @@ class WC_Shortcodes {
} }
/** /**
* List related products.
* @param array $atts * @param array $atts
* @return string * @return string
*/ */
public static function related_products( $atts ) { public static function related_products( $atts ) {
$atts = shortcode_atts( array( $atts = shortcode_atts( array(
'per_page' => '4', 'per_page' => '4',
'columns' => '4', 'columns' => '4',
'orderby' => 'rand' 'orderby' => 'rand'
), $atts ); ), $atts );
ob_start(); ob_start();