Set_Up_Automator::__construct()

Set_Up_Automator constructor.


Source

File: src/core/classes/class-set-up-automator.php

	public function __construct() {

		if ( strpos( $_SERVER['REQUEST_URI'], 'favicon' ) ) {
			// bail out if it's favicon.ico
			return;
		}

		$this->default_directories = apply_filters(
			'automator_integration_default_directories',
			array(
				'actions',
				'helpers',
				'tokens',
				'triggers',
				'closures',
			)
		);

		add_action( 'plugins_loaded', array( $this, 'automator_configure' ), AUTOMATOR_CONFIGURATION_PRIORITY );
		add_action(
			'automator_configuration_complete',
			array(
				$this,
				'automator_configuration_complete_func',
			),
			AUTOMATOR_CONFIGURATION_COMPLETE_PRIORITY
		);

	}