/var/www/html_uk/wp-content/plugins/automatewoo/includes/Async_Events/User_Registered.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php

namespace AutomateWoo\Async_Events;

defined'ABSPATH' ) || exit;

/**
 * Class User_Registered
 *
 * @since 4.8.0
 * @package AutomateWoo
 */
class User_Registered extends Abstract_Async_Event {

    
/**
     * Init the event.
     */
    
public function init() {
        
add_action'automatewoo/user_registered', [ $this'handle_user_registered' ] );
    }

    
/**
     * Handle user registered event.
     *
     * Async user registration hook, allows checkout and other third party plugins to add data before we run triggers.
     *
     * @param int $user_id
     */
    
public function handle_user_registeredint $user_id ) {
        
$this->create_async_event( [ $user_id ] );
    }
}