automator_add_trigger( $path,  $integration )


Parameters Parameters

$path

(Required)

$integration

(Required)


Top ↑

Return Return

(bool)


Source Source

File: src/global-functions.php

function automator_add_trigger( string $path, string $integration ) {
	$integration = strtolower( $integration );
	if ( ! automator_integration_exists( $integration ) ) {
		return false;
	}

	Set_Up_Automator::$all_integrations[ $integration ]['triggers'][] = $path;

	return true;
}


Top ↑

Changelog Changelog

Changelog
Version Description
3.0 Introduced.