Merge pull request #9324 from shivapoudel/shortcodes
Docblock for related products
This commit is contained in:
commit
090de0c6a7
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue