Set_Up_Automator::extract_integration_folders( $integrations,  $directory )


Parameters Parameters

$integrations

(Required)

$directory

(Required)


Top ↑

Return Return

(array)


Source Source

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

	public static function extract_integration_folders( $integrations, $directory ) {
		$folders = array();
		if ( $integrations ) {
			foreach ( $integrations as $f => $integration ) {
				$path = isset( $integration['main'] ) ? dirname( $integration['main'] ) : $directory . DIRECTORY_SEPARATOR . $f;
				//$path      = $directory . DIRECTORY_SEPARATOR . $f;
				$path      = apply_filters( 'automator_integration_folder_paths', $path, $integration, $directory, $f );
				$folders[] = $path;
			}
		}

		return apply_filters( 'automator_integration_folders', $folders, $integrations, $directory );
	}