Title: undefined function wc_add_notice
Last modified: August 21, 2016

---

# undefined function wc_add_notice

 *  Resolved [infosws](https://wordpress.org/support/users/nicksws/)
 * (@nicksws)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/undefined-function-wc_add_notice/)
 * Tried to update quantity from product page or cart page:
 * Fatal error: Call to undefined function wc_add_notice() in wp-content/plugins/
   woocommerce-max-quantity/woocommerce-max-quantity.php on line 160
 * or
 * Fatal error: Call to undefined function wc_add_notice() in wp-content/plugins/
   woocommerce-max-quantity/woocommerce-max-quantity.php on line 193
 * Using latest version of plugin and version 2.0.17 of WooCommerce.
 * I know I only have 3.6.1 or WordPress but this shouldn’t matter should it? It’s
   a wc function that’s missing.
 * Thanks.
 * [https://wordpress.org/plugins/woocommerce-max-quantity/](https://wordpress.org/plugins/woocommerce-max-quantity/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [isabel104](https://wordpress.org/support/users/isabel104/)
 * (@isabel104)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/undefined-function-wc_add_notice/#post-4745053)
 * The `wc_add_notice()` function was introduced in WooCommerce 2.1.0. And it requires
   WordPress 3.8. Sorry for the inconvenience.
 *  Thread Starter [infosws](https://wordpress.org/support/users/nicksws/)
 * (@nicksws)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/undefined-function-wc_add_notice/#post-4745121)
 * Thanks. This was it. After upgrading WordPress (and WooCommerce, just to be sure)
   it worked.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘undefined function wc_add_notice’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-max-quantity/assets/icon.svg?rev=3563132)
 * [Maximum Quantity for WooCommerce Shops](https://wordpress.org/plugins/woocommerce-max-quantity/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-max-quantity/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-max-quantity/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-max-quantity/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-max-quantity/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-max-quantity/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [infosws](https://wordpress.org/support/users/nicksws/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/undefined-function-wc_add_notice/#post-4745121)
 * Status: resolved