Title: Deprecated WooCommerce function
Last modified: August 22, 2016

---

# Deprecated WooCommerce function

 *  [SilkyPress](https://wordpress.org/support/users/diana_burduja/)
 * (@diana_burduja)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/deprecated-woocommerce-function/)
 * Hi,
 * `Notice: woocommerce_related_products was called with an argument that is deprecated
   since version 2.1! Use $args argument as an array instead. Deprecated argument
   will be removed in WC 2.2. in /var/www/diana/wp-includes/functions.php on line
   3495`
 * The call of the function is done in themes/gumbo/inc/woocommerce/woocommerce.
   php. Since version 2.1 the function is called with only one $args argument that
   has to look like this:
 *     ```
       array(
         'posts_per_page' => '2',
         'columns'        => '2',
         'orderby'        => 'rand',
       );
       ```
   
 * Otherwise this is a very nice theme 🙂

Viewing 1 replies (of 1 total)

 *  [Dragan Nikolic](https://wordpress.org/support/users/nikolicdragan/)
 * (@nikolicdragan)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/deprecated-woocommerce-function/#post-5667124)
 * Thanks for this Diana. We’ll implement this in one of the future versions.

Viewing 1 replies (of 1 total)

The topic ‘Deprecated WooCommerce function’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/gumbo/1.1/screenshot.png)
 * Gumbo
 * [Support Threads](https://wordpress.org/support/theme/gumbo/)
 * [Active Topics](https://wordpress.org/support/theme/gumbo/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/gumbo/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/gumbo/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Dragan Nikolic](https://wordpress.org/support/users/nikolicdragan/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/deprecated-woocommerce-function/#post-5667124)
 * Status: not resolved