Inventory_Presser_Customize_Dashboard::delete_all_inventory_ajax()

delete_all_inventory_ajax


Description Description

AJAX handler for the 'Delete all Inventory' button on options page. Deletes all inventory and outputs a response to the JavaScript caller.


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/class-customize-admin-dashboard.php

		$links[] = sprintf(
			'<a href="%s">%s</a>',
			$url,
			__( 'Settings', 'inventory-presser' )
		);
		return $links;
	}
	
	/**
	 * load_scripts
	 * 
	 * Includes JavaScripts and stylesheets that power our changes to the 
	 * dashboard. 
	 *
	 * @param  string $hook
	 * @return void
	 */
	function load_scripts( $hook )
	{
		wp_enqueue_style( 'my-admin-theme', plugins_url( '/css/wp-admin.min.css', INVP_PLUGIN_FILE_PATH ) );
		wp_register_script( 'invp-js', plugins_url( '/js/admin.min.js', INVP_PLUGIN_FILE_PATH ) );
		wp_enqueue_script( 'invp-js' );