Title: Set default for custom fields
Last modified: September 1, 2016

---

# Set default for custom fields

 *  Resolved [Scott DeLuzio](https://wordpress.org/support/users/scottdeluzio/)
 * (@scottdeluzio)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/set-default-for-custom-fields/)
 * I have a custom post type that is for invoices. On occasion I will need to send
   the same invoice to a customer, so I’d like to simply duplicate it with your 
   plugin rather than manually create a new one.
 * However, the invoice has a few fields that should not be carried over. For example,
   the paid/unpaid status, the date it was sent to the customer, the date it was
   paid, the invoice date, and due date.
 * Is there a filter of some sort that would allow me to set custom fields to ignore,
   or not include in the duplication, when duplicating a post?
 * [https://wordpress.org/plugins/post-duplicator/](https://wordpress.org/plugins/post-duplicator/)

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

 *  Plugin Author [metaphorcreations](https://wordpress.org/support/users/metaphorcreations/)
 * (@metaphorcreations)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/set-default-for-custom-fields/#post-7529771)
 * There isn’t aren’t any filter or settings, at this point, to do this. The only
   option would be to manually delete any data that you don’t want after a post 
   is duplicated.
 * I think the easiest update, on my end, would be to create an action hook after
   the duplicated post is created so you could delete custom meta or any other data
   by using your own custom action. I’ll try to get this into the next update, whenever
   that may be.
 *  Thread Starter [Scott DeLuzio](https://wordpress.org/support/users/scottdeluzio/)
 * (@scottdeluzio)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/set-default-for-custom-fields/#post-7529785)
 * That would be awesome. It’s not a huge issue I’m sure for many people, and likely
   not what this plugin was originally intended for, but for my purposes it would
   be a welcomed addition.
 *  Plugin Author [metaphorcreations](https://wordpress.org/support/users/metaphorcreations/)
 * (@metaphorcreations)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/set-default-for-custom-fields/#post-7529787)
 * Yeah, initially I didn’t have any options for it as it was just for straight 
   duplication… but, then I added a few things in, and now I think I’ll beef it 
   up quite a bit more when I get some free time.

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

The topic ‘Set default for custom fields’ is closed to new replies.

 * ![](https://ps.w.org/post-duplicator/assets/icon-128x128.png?rev=3419621)
 * [Post Duplicator](https://wordpress.org/plugins/post-duplicator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-duplicator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-duplicator/)
 * [Active Topics](https://wordpress.org/support/plugin/post-duplicator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-duplicator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-duplicator/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [metaphorcreations](https://wordpress.org/support/users/metaphorcreations/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/set-default-for-custom-fields/#post-7529787)
 * Status: resolved