Title: Adding custom fields to Plugin
Last modified: December 18, 2019

---

# Adding custom fields to Plugin

 *  [Supplement Genie](https://wordpress.org/support/users/supplementgenie/)
 * (@supplementgenie)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/adding-custom-fields-to-plugin/)
 * I am currently using WP-Invoice plugin which does everything I need.
 * The only thing missing is the ability to enter a Purchase Order Number.
 * I have asked in the support forum but got no reply and to ask the developers 
   direct they want money before looking at anything even though a PO Number is 
   a pretty standard field for an invoice.
 * I was hoping someone could point me in the direction of how to add a custom field
   in the back end?
 * I need to add a PO Number and have this appear on the PDF invoice but im not 
   sure where to start.
 * Any help would be great.

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

 *  [a2hostingrj](https://wordpress.org/support/users/a2hostingrj/)
 * (@a2hostingrj)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/adding-custom-fields-to-plugin/#post-12248511)
 * You just needs to add meta field for this post type and save its value while 
   updating the post. Take a look at the plugin’s save form action, the way it handles
   the other fields and how values are displaying.
 *  Thread Starter [Supplement Genie](https://wordpress.org/support/users/supplementgenie/)
 * (@supplementgenie)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/adding-custom-fields-to-plugin/#post-12251420)
 * [@a2hostingrj](https://wordpress.org/support/users/a2hostingrj/) I think the 
   PDF will be the easy part.
 * However, I need to add a new field to the admin end of the plug in so that I 
   can insert the PO number. Currently When I add an invoice, there is no option
   for this
 * I have mainly done front end development so not sure how to add new fields to
   a plugin?
 *  Thread Starter [Supplement Genie](https://wordpress.org/support/users/supplementgenie/)
 * (@supplementgenie)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/adding-custom-fields-to-plugin/#post-12251718)
 * I am thinking, from looking that it has something to do with one of these files:
 * [https://github.com/wp-invoice/wp-invoice/blob/latest/lib/class_template_functions.php](https://github.com/wp-invoice/wp-invoice/blob/latest/lib/class_template_functions.php)
 * [https://github.com/wp-invoice/wp-invoice/blob/latest/lib/class_functions.php](https://github.com/wp-invoice/wp-invoice/blob/latest/lib/class_functions.php)
 * [https://github.com/wp-invoice/wp-invoice/blob/latest/lib/class_ajax.php](https://github.com/wp-invoice/wp-invoice/blob/latest/lib/class_ajax.php)
 * [https://github.com/wp-invoice/wp-invoice/blob/latest/lib/ui/wp-invoice_page_wpi_page_manage_invoice.php](https://github.com/wp-invoice/wp-invoice/blob/latest/lib/ui/wp-invoice_page_wpi_page_manage_invoice.php)
 * [https://github.com/wp-invoice/wp-invoice/blob/latest/lib/ui/metabox/wp-invoice_page_wpi_page_manage_invoice.php](https://github.com/wp-invoice/wp-invoice/blob/latest/lib/ui/metabox/wp-invoice_page_wpi_page_manage_invoice.php)

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

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

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Supplement Genie](https://wordpress.org/support/users/supplementgenie/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/adding-custom-fields-to-plugin/#post-12251718)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
