Inventory_Presser_Admin_Options::scripts_and_styles()

Registers JavaScript and CSS file that power the settings page.

On This Page


Return Return

(void)


Top ↑

Source Source

File: includes/admin/class-admin-options.php

	public function scripts_and_styles() {
		$handle = 'invp_page_settings';
		$min    = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
		wp_register_script(
			$handle,
			plugins_url( "/js/page-settings${min}.js", INVP_PLUGIN_FILE_PATH ),
			array( 'jquery' ),
			INVP_PLUGIN_VERSION,
			true
		);
		wp_register_style(
			$handle,
			plugins_url( "/css/page-settings${min}.css", INVP_PLUGIN_FILE_PATH ),
			array(),
			INVP_PLUGIN_VERSION
		);
	}