• Resolved Scott DeLuzio

    (@scottdeluzio)


    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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author metaphorcreations

    (@metaphorcreations)

    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

    (@scottdeluzio)

    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

    (@metaphorcreations)

    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.