Inventory_Presser_Customize_Admin_Dashboard::delete_all_inventory_ajax()

AJAX handler for the ‘Delete all Inventory’ button on options page.


Description Description

Deletes all inventory and echoes a response to the JavaScript caller.


Top ↑

Source Source

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

		);
	}
	
	/**
	 * delete_all_post_attachments
	 * 
	 * Deletes all a post's attachments. The callback behind the Delete All 
	 * Media button.
	 *
	 * @return void
	 */
	function delete_all_post_attachments()
	{
		if( empty( $_POST['_ajax_nonce'] ) || ! wp_verify_nonce( $_POST['_ajax_nonce'], self::NONCE_DELETE_ALL_MEDIA ) )
		{
			return;
		}