Documentation

Call to undefined function WC() error on my website?

After installing and activating any of our We are AG plugins, you might encounter the error: “Call to undefined function WC()” either on your WordPress dashboard or in your logs.

What causes this error?

The WC() function is part of the WooCommerce plugin. If our plugin doesn’t detect it, this likely means that WooCommerce isn’t installed and activated on your website when you activated the We are AG plugins.

What can you do?

To resolve this issue, you need to install and activate the WooCommerce plugin, which is available for free at the moment. You can learn more about installing the WooCommerce plugin on your WordPress website by following this link.

Once WooCommerce is properly installed and activated, you can then activate any of our We are AG plugins on your site.

This should resolve the issue completely. However, if the problem persists, please don’t hesitate to contact our support, and one of our friendly support team members will help you sort it out.

Was this helpful?

Still need help?

Our team are on hand to provide fast, helpful and professional support.

Support request

AG Bot (BETA) - Not live chat

Ask our bot about our products.

Welcome to our AG Bot, powered by OpenAI and trained on our documents and product pages. By continuing to use this service, please keep in mind:

Your continued use indicates acceptance of these terms. We hope you find our AI Chatbot useful!

Hello! I am AG Bot, how can I help you? (Not live chat)