automator_add_integration_directory( $integration_code,  $directory )


Parameters Parameters

$integration_code

(Required)

$directory

(Required)


Top ↑

Return Return

(bool)


Source Source

File: src/global-functions.php

function automator_add_integration_directory( string $integration_code, string $directory ) {
	$int_directory = automator_add_integration( $directory );
	if ( ! isset( $int_directory['main'] ) ) {
		return false;
	}
	Set_Up_Automator::$auto_loaded_directories[]             = dirname( $int_directory['main'] );
	Set_Up_Automator::$all_integrations[ $integration_code ] = $int_directory;

	return true;
}


Top ↑

Changelog Changelog

Changelog
Version Description
3.0 Introduced.