Automator_Send_Webhook_Ajax_Handler::__construct()

Send_Webhook_Ajax_Handler constructor


Source Source

File: src/core/lib/webhooks/class-automator-send-webhook-ajax-handler.php

	public function __construct() {
		// Send sample data ajax catch
		add_action( 'wp_ajax_nopriv_automator_webhook_send_test_data', array( $this, 'webhook_send_test_data' ) );
		add_action( 'wp_ajax_automator_webhook_send_test_data', array( $this, 'webhook_send_test_data' ) );

		// Return field data
		add_action( 'wp_ajax_nopriv_automator_webhook_build_test_data', array( $this, 'webhook_build_test_data' ) );
		add_action( 'wp_ajax_automator_webhook_build_test_data', array( $this, 'webhook_build_test_data' ) );
	}