Advertisement
Guest User

Untitled

a guest
Dec 17th, 2021
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.75 KB | None | 0 0
  1. <?php
  2.  
  3. use ImportWP\Common\Importer\ParsedData;
  4. use ImportWP\Common\Importer\Template\Template;
  5. use ImportWP\EventHandler;
  6.  
  7. class IWP_Ticket_33515
  8. {
  9.     function __construct()
  10.     {
  11.         add_action('iwp/register_events', [$this, 'register_events']);
  12.     }
  13.  
  14.     function register_events(EventHandler $event_handler)
  15.     {
  16.         $event_handler->listen('template.post_process', [$this, 'template_post_process']);
  17.     }
  18.  
  19.     /**
  20.      * Triggered after a record has been updated
  21.      *
  22.      * @param int $id
  23.      * @param ParsedData $data
  24.      * @param Template $template
  25.      * @return void
  26.      */
  27.     function template_post_process($id, $data, $template)
  28.     {
  29.         // TODO: Write custom code
  30.     }
  31. }
  32.  
  33. new IWP_Ticket_33515();
  34.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement