Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- use ImportWP\Common\Importer\ParsedData;
- use ImportWP\Common\Importer\Template\Template;
- use ImportWP\EventHandler;
- class IWP_Ticket_33515
- {
- function __construct()
- {
- add_action('iwp/register_events', [$this, 'register_events']);
- }
- function register_events(EventHandler $event_handler)
- {
- $event_handler->listen('template.post_process', [$this, 'template_post_process']);
- }
- /**
- * Triggered after a record has been updated
- *
- * @param int $id
- * @param ParsedData $data
- * @param Template $template
- * @return void
- */
- function template_post_process($id, $data, $template)
- {
- // TODO: Write custom code
- }
- }
- new IWP_Ticket_33515();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement