@haylee.mertz
To call a WooCommerce class function from functions.php, you can use the following code:
1 2 3 4 5 |
// Get instance of the WooCommerce class global $woocommerce; // Call the WooCommerce function $woocommerce->function_name(); |
Replace function_name
with the name of the WooCommerce function that you want to call. Make sure that you have the WooCommerce class available in your functions.php file or include it if necessary.