WPForms_Uncanny_Automator::enqueue_assets()

Enqueue JS and CSS files.


Source Source

File: src/core/admin/class-wpforms-provider.php

	public function enqueue_assets() {

		wp_enqueue_style(
			'wpforms-admin-page-uncanny-automator',
			Utilities::automator_get_css( 'admin/wpforms-provider.css' ),
			null,
			AUTOMATOR_PLUGIN_VERSION
		);

		wp_enqueue_script(
			'wpforms-admin-page-uncanny-automator',
			Utilities::automator_get_js( 'admin/wpforms-provider.js' ),
			array(),
			AUTOMATOR_PLUGIN_VERSION
		);

		\wp_localize_script(
			'wpforms-admin-page-uncanny-automator',
			'wpforms_uncannyautomator',
			$this->get_js_strings()
		);
	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.7.0 Introduced.