Support

Home Forums Event Espresso Premium Duplicate event Yoast SEO settings

Duplicate event Yoast SEO settings

Posted: May 9, 2017 at 5:57 am


asteiner

May 9, 2017 at 5:57 am

Hi,

Is there a way to keep Yoast SEO settings on duplicate event?
Maybe some filter or something I could use to duplicate Yoast SEO settings too..?

Thank you.


Josh

  • Support Staff

May 9, 2017 at 7:27 am

Hi there,

You can actually use an action hook that fires at the end of the duplicating, and that hook is:

AHEE__Extend_Events_Admin_Page___duplicate_event__after

You can see the code that handles the duplication to get ideas on how to duplicate other things like Yoast SEO settings, here’s a link to the action hook in the context of the code:

https://github.com/eventespresso/event-espresso-core/blob/master/caffeinated/admin/extend/events/Extend_Events_Admin_Page.core.php#L643

The support post ‘Duplicate event Yoast SEO settings’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso