src/Modules/Logger.php
public function setup_actions() {
		if ( ! $this->is_logger_active() ) {
			return;
		}
		$action_key = $this->product->get_key() . '_log_activity';
		if ( ! wp_next_scheduled( $action_key ) ) {
			wp_schedule_single_event( time() + ( rand( 1, 24 ) * 3600 ), $action_key );
		}
		add_action( $action_key, array( $this, 'send_log' ) );

	}
public function setup_actions() {
		if ( ! $this->is_logger_active() ) {
			return;
		}
		$action_key = $this->product->get_key() . '_log_activity';
		if ( ! wp_next_scheduled( $action_key ) ) {
			wp_schedule_single_event( time() + ( rand( 1, 24 ) * 3600 ), $action_key );
		}
		add_action( $action_key, array( $this, 'send_log' ) );

	}
public function setup_actions ( ) { if ( ! $ this -> is_logger_active ( ) ) { return ; } $ action_key = $ this -> product -> get_key ( ) . '_log_activity' ; if ( ! wp_next_scheduled ( $ action_key ) ) { wp_schedule_single_event ( time ( ) + ( rand ( 1 , 24 ) * 3600 ) , $ action_key ) ; } add_action ( $ action_key , array ( $ this , 'send_log' ) ) ; }
Setup tracking actions.
Setup tracking actions .