<?php

/**
 * Addon Name: Zapier
 * Version: 1.0
 * Plugin URI:  https://wpmudev.com/
 * Description: Integrate Forminator Custom Forms with Zapier to execute various action you like
 * Author: WPMU DEV
 * Author URI: http://wpmudev.com
 */

define( 'FORMINATOR_ADDON_ZAPIER_VERSION', '1.2' );

function forminator_addon_zapier_url() {
	return trailingslashit( forminator_plugin_url() . 'addons/pro/zapier' );
}

function forminator_addon_zapier_assets_url() {
	return trailingslashit( forminator_addon_zapier_url() . 'assets' );
}

function forminator_addon_zapier_dir() {
	return trailingslashit( dirname( __FILE__ ) );
}

require_once dirname( __FILE__ ) . '/class-forminator-addon-zapier.php';

require_once dirname( __FILE__ ) . '/class-forminator-addon-zapier-form-settings.php';
require_once dirname( __FILE__ ) . '/class-forminator-addon-zapier-form-hooks.php';

require_once dirname( __FILE__ ) . '/class-forminator-addon-zapier-poll-settings.php';
require_once dirname( __FILE__ ) . '/class-forminator-addon-zapier-poll-hooks.php';

require_once dirname( __FILE__ ) . '/class-forminator-addon-zapier-quiz-settings.php';
require_once dirname( __FILE__ ) . '/class-forminator-addon-zapier-quiz-hooks.php';

//Direct Load
Forminator_Addon_Loader::get_instance()->register( 'Forminator_Addon_Zapier' );
