WPForms_Uncanny_Automator::init()

Initialize.


Source Source

File: src/core/admin/class-wpforms-provider.php

	public function init() {

		$this->version  = '1.7.0';
		$this->name     = 'Uncanny Automator';
		$this->slug     = 'uncanny-automator';
		$this->priority = 19;
		$this->icon     = Utilities::automator_get_media( 'admin/wpforms-automator-icon.png' );

		if ( is_admin() ) {
			add_action( 'wpforms_admin_page', array( $this, 'learn_more_page' ) );

			// Check if we are on the correct page. It's too early to use any WP functions for that.
			if ( $this->is_integrations_page() || $this->is_marketing_page() ) {
				add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_assets' ) );
			}
		}

		if ( wp_doing_ajax() ) {
			add_action(
				'wp_ajax_wpforms_uncanny_automator_check_plugin_status',
				array(
					$this,
					'ajax_check_plugin_status',
				)
			);
		}

	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.7.0 Introduced.