Title: using woocommerce core without loading themes
Last modified: February 17, 2019

---

# using woocommerce core without loading themes

 *  Resolved [Mostafa Shahiri](https://wordpress.org/support/users/mostafadeveloper/)
 * (@mostafadeveloper)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/using-woocommerce-core-without-loading-themes/)
 * Hi
    I want to use Woocommerce without loading themes (I want to use Woocommerce
   library for responding to mobile app requests, so I don’t load the themes), but
   I can not use it’s functions and classes. I include Woocommerce.php file in my
   code before using woocomerce functions and classes, but it does not resolve the
   problem. (For example, when I try to create an object of WC_Order and fetch the
   order details, it returns nothing). I think it happens because taxonomy names
   are registered by loading theme. Is there any way to register Woocommerce taxonomies
   without loading theme? I want to know where does Woocommerce register it’s taxonomies(
   in which path/directory/file)?
 * Thanks

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

 *  [Luminus Alabi](https://wordpress.org/support/users/luminus/)
 * (@luminus)
 * Automattic Happiness Engineer
 * [7 years, 3 months ago](https://wordpress.org/support/topic/using-woocommerce-core-without-loading-themes/#post-11216154)
 * Hi [@mostafadeveloper](https://wordpress.org/support/users/mostafadeveloper/),
 * If you’re trying to use WordPress/WooCommerce as the backend of your mobile app,
   you should be making requests using the REST API.
 * You can learn more about the REST API here – [https://docs.woocommerce.com/document/woocommerce-rest-api/](https://docs.woocommerce.com/document/woocommerce-rest-api/).
 *  Thread Starter [Mostafa Shahiri](https://wordpress.org/support/users/mostafadeveloper/)
 * (@mostafadeveloper)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/using-woocommerce-core-without-loading-themes/#post-11218090)
 * [@luminus](https://wordpress.org/support/users/luminus/) Hi.Thanks for your reply.
   I know it. My problem is another thing. I just want to know, how and where Woocommerce
   taxonomies are registered?
 *  [Hari Shanker R](https://wordpress.org/support/users/harishanker/)
 * (@harishanker)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/using-woocommerce-core-without-loading-themes/#post-11222957)
 * Hi [@mostafadeveloper](https://wordpress.org/support/users/mostafadeveloper/)
 * Taxonomies are registered in the file: `woocommerce/includes/class-wc-post-types.
   php` located within WooCommerce.
 * You can check out the file over here: [https://github.com/woocommerce/woocommerce/blob/2529cd60cd423cafd917436d4380ff62a3a160b7/includes/class-wc-post-types.php](https://github.com/woocommerce/woocommerce/blob/2529cd60cd423cafd917436d4380ff62a3a160b7/includes/class-wc-post-types.php)
 * I hope that gets you going in the right direction.

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

The topic ‘using woocommerce core without loading themes’ is closed to new replies.

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

## Tags

 * [taxonomy](https://wordpress.org/support/topic-tag/taxonomy/)

 * 3 replies
 * 3 participants
 * Last reply from: [Hari Shanker R](https://wordpress.org/support/users/harishanker/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/using-woocommerce-core-without-loading-themes/#post-11222957)
 * Status: resolved