Title: Where to put custom code?
Last modified: September 1, 2016

---

# Where to put custom code?

 *  Resolved [orlysbondoc](https://wordpress.org/support/users/orlysbondoc/)
 * (@orlysbondoc)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/where-to-put-custom-code/)
 * Hi everyone,
 * Where is the best file to put my own custom code for woocommerce? I am planning
   to add a new data to the webhook, but i would like to ask for your guidance in
   regards to this.
 * Thanks
 * [https://wordpress.org/plugins/woocommerce/](https://wordpress.org/plugins/woocommerce/)

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

 *  [Dotstore](https://wordpress.org/support/users/dots/)
 * (@dots)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/where-to-put-custom-code/#post-7673365)
 * You can put your custom code in your theme function.php file, If you would like
   to extend woocommerce functionality for changes anything then you should use 
   hook or filter for the same.
 * If you would like to change any woocommerce template then you just have to create
   woocommerce folder in your theme and override woocommerce template and you can
   change and do your custom code.
 * For more information please refer to below url:
    [https://docs.woocommerce.com/document/template-structure/](https://docs.woocommerce.com/document/template-structure/)
 *  [kalebmordecai](https://wordpress.org/support/users/kalebmordecai/)
 * (@kalebmordecai)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/where-to-put-custom-code/#post-7673393)
 * [@orlysbondoc](https://wordpress.org/support/users/orlysbondoc/) I highly recommend
   putting custom code into a plugin or using the Code Snippets plugin.
 * [https://wordpress.org/plugins/code-snippets/](https://wordpress.org/plugins/code-snippets/)

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

The topic ‘Where to put custom code?’ 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/)

 * 2 replies
 * 3 participants
 * Last reply from: [kalebmordecai](https://wordpress.org/support/users/kalebmordecai/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/where-to-put-custom-code/#post-7673393)
 * Status: resolved