automator_add_action( string $path, string $integration )


Parameters Parameters

$path

(string) (Required)

$integration

(string) (Required)


Top ↑

Return Return

(bool)


Source Source

File: src/global-functions.php

function automator_add_action( array $integrations, string $path, string $integration ): array {
	$integration = strtolower( $integration );
	if ( ! automator_integration_exists( $integration ) ) {
		return $integrations;
	}

	$integrations[ $integration ]['actions'][] = $path;

	return $integrations;
}


Top ↑

Changelog Changelog

Changelog
Version Description
3.0 Introduced.