Title: adding custom fields
Last modified: October 20, 2018

---

# adding custom fields

 *  [steve1072](https://wordpress.org/support/users/stevefox1072/)
 * (@stevefox1072)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/adding-custom-fields-24/)
 * I have the file
    [https://www.angelleye.com/offers-for-woocommerce-developer-hooks-guide/](https://www.angelleye.com/offers-for-woocommerce-developer-hooks-guide/)
 * Download this sample script to see how you can easily add your own custom fields
   to the offer form that buyers fill out.
 * You don’t explain where to add the code. You explain nothing.
 * Please advise. Make things easier so we don’t have to contact you. Explain which
   page to add the code. I need to add many custom fields to the offer.
 * Live Event Artist
    [https://liveeventartist.com/product/live-event-artist-painting-of-your-special-event-make-offer/?aewcobtn=1](https://liveeventartist.com/product/live-event-artist-painting-of-your-special-event-make-offer/?aewcobtn=1)

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

 *  Thread Starter [steve1072](https://wordpress.org/support/users/stevefox1072/)
 * (@stevefox1072)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/adding-custom-fields-24/#post-10811999)
 * Hello. We need to fix this issue please. Why are we getting no response?
 * Please advise
 * Live Event Artist
 *  Thread Starter [steve1072](https://wordpress.org/support/users/stevefox1072/)
 * (@stevefox1072)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/adding-custom-fields-24/#post-10819175)
 * Hello?
 * Why are we getting no response? It’s been 1 week now
 * Live Event Artist
 *  [angelleyesupport](https://wordpress.org/support/users/angelleyesupport/)
 * (@angelleyesupport)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/adding-custom-fields-24/#post-10819365)
 * Hi @Steve1072,
 * I’m so sorry for the delay in response, I though I responded to a similar thread
   but somehow this got skipped. Sorry again!
 * The guide is for developer’s and every developer actually know how to play with
   code. But we will definitely try to improve our docs and make it more dev friendly.
 * For now, You can place that file either in your theme folder or within your child
   theme folder or even add that piece of code into your theme’s function.php or
   child theme’s function.php file ( which is always recommended when using WP and
   customizing it ).
 * Let me know if you have any other questions or concerns.
    Thanks!
 *  Thread Starter [steve1072](https://wordpress.org/support/users/stevefox1072/)
 * (@stevefox1072)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/adding-custom-fields-24/#post-10831124)
 * This is the first I”ve heard. I have it set to send me emails if a response is
   received.
 * Your system is not acting right as I”m not receiving auto emails.
 * I am a developer BUT you should still provide instructions as to modifying your
   plugin.
 * You provide a script with no instructions. Plus we are supposed to be modifying
   the plugin NOT the theme in question. I would rather not modify the theme for
   this plugin. I would rather the plugin be modified.
 * Please advise. I’ve been asking these questions for some time with NO RESPONSE.
 * I’d like to get my client taken care of. He just needs simple custom fields for
   the make offer. As many as needed. This is pretty simple.
 * Please advise
 * Live Event Artist
    -  This reply was modified 7 years, 7 months ago by [steve1072](https://wordpress.org/support/users/stevefox1072/).
 *  [angelleyesupport](https://wordpress.org/support/users/angelleyesupport/)
 * (@angelleyesupport)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/adding-custom-fields-24/#post-10834960)
 * Hi [@stevefox1072](https://wordpress.org/support/users/stevefox1072/), I’m so
   sorry about that, Please allow me to get someone relevant to give you a more 
   clear reply to this one.
 * Thanks!
 *  Plugin Contributor [angelleye](https://wordpress.org/support/users/angelleye/)
 * (@angelleye)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/adding-custom-fields-24/#post-10836534)
 * [@stevefox1072](https://wordpress.org/support/users/stevefox1072/) You need to
   read up on the standard procedures of WordPress. You are missing some key elements
   that would clear this stuff up for you, but those elements are beyond the scope
   of what we can cover in a basic guide for our plugin. These are just WordPress
   developer basics.
 * You should **never** customize a plugin’s core code directly. Instead, you need
   to use hooks that are provided by the plugin to do your customization. The standard
   place for placing hooks is in your theme’s functions.php file. You are not modifying
   your theme by doing this. You are simply extending functionality for your site,
   which is exactly how WordPress works and makes it such a powerful system.
 * Note that you should be working with a Child Theme as well, so the functions.
   php would actually go in your child theme, and the fall-back system in WordPress
   makes this all work beautifully. Again, this is a standard procedure.
 * If you don’t want to do this through your child theme’s functions.php file, then
   what you can do is create your own basic plugin file and add the same code there
   that would you put into the functions.php file. For this you just need to follow
   the standard procedures for [writing a basic WordPress plugin](https://codex.wordpress.org/Writing_a_Plugin).
   So you basically just create your plugin file with the proper comments at the
   top, and then drop in your hooks/functions accordingly.
 * Again, child themes, functions.php, and plugins are all general WordPress developer
   things that we can’t possibly be expected to include every piece of documentation
   of ours. If we did include such content it would be an entirely separate tutorial/
   document, and there are so many of those already out there that we really don’t
   need to reinvent the wheel.
 * Hopefully that helps you understand what’s going on here. If you need more direct
   help please [submit an order for premium support](https://angelleye.com/product/paypal-help).
   Then you can schedule a time with me, and I can work with you to get this all
   setup the way you need.
    -  This reply was modified 7 years, 7 months ago by [angelleye](https://wordpress.org/support/users/angelleye/).
    -  This reply was modified 7 years, 7 months ago by [angelleye](https://wordpress.org/support/users/angelleye/).
 *  Plugin Contributor [angelleye](https://wordpress.org/support/users/angelleye/)
 * (@angelleye)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/adding-custom-fields-24/#post-10836546)
 * [@stevefox1072](https://wordpress.org/support/users/stevefox1072/), to follow
   up on that long answer, the short answer is this.
 * The place to put that script you downloaded would be your theme’s functions.php
   file, as Oliver mentioned.
 * If you don’t want to do that, add this to the top of the file that you downloaded:
 *     ```
       <?php
       /*
       Plugin Name:  Offers for WooCommerce - Custom Hooks
       Plugin URI:   https://angelleye.com/
       Description:  Custom hooks for the Offers for WooCommerce plugin.
       Version:      1.0.0
       Author:       angelleye
       Author URI:   https://angelleye.com/
       License:      GPL2
       License URI:  https://www.gnu.org/licenses/gpl-2.0.html
       Text Domain:  aeofw-hooks
       Domain Path:  /languages
       */
       ```
   
 * That will effectively turn that file into a basic WordPress plugin. Upload that
   to your /plugins directory on your site and then you’ll be able to activate it
   like any other plugin.
 * Hopefully that helps get you where you want to be.

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

The topic ‘adding custom fields’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/offers-for-woocommerce_edefee.svg)
 * [Offers for WooCommerce](https://wordpress.org/plugins/offers-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/offers-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/offers-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/offers-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/offers-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/offers-for-woocommerce/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [angelleye](https://wordpress.org/support/users/angelleye/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/adding-custom-fields-24/#post-10836546)
 * Status: not resolved