Utilities::automator_get_recipe_dist( $file_name )

Returns the full url for the recipe UI dist directory


Parameters Parameters

$file_name

(Required)


Top ↑

Return Return

(Uncanny_Automator$asset_url)


Source Source

File: src/core/class-utilities.php

	public static function automator_get_recipe_dist( string $file_name ) {
		if ( defined( 'AUTOMATOR_DEBUG_MODE' ) && true === AUTOMATOR_DEBUG_MODE ) {
			$asset_url = plugins_url( 'src/recipe-ui/dist/' . $file_name, AUTOMATOR_BASE_FILE );
		} else {
			$asset_url = plugins_url( 'src/recipe-ui/dist/' . $file_name, AUTOMATOR_BASE_FILE );

		}

		return $asset_url;
	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.