WC_Admin_Exporters
in package
WC_Admin_Exporters Class.
Table of Contents
- $exporters : array<string|int, string>
- Array of exporter IDs.
- __construct() : mixed
- Constructor.
- add_to_menus() : mixed
- Add menu items for our custom exporters.
- admin_scripts() : mixed
- Enqueue scripts.
- do_ajax_product_export() : mixed
- AJAX callback for doing the actual export to the CSV file.
- download_export_file() : mixed
- Serve the generated file.
- get_product_types() : array<string|int, mixed>
- Gets the product types that can be exported.
- hide_from_menus() : mixed
- Hide menu items from view so the pages exist, but the menu items do not.
- product_exporter() : mixed
- Export page UI.
- export_allowed() : bool
- Return true if WooCommerce export is allowed for current user, false otherwise.
Properties
$exporters
Array of exporter IDs.
protected
array<string|int, string>
$exporters
= array()
Methods
__construct()
Constructor.
public
__construct() : mixed
Return values
mixed —add_to_menus()
Add menu items for our custom exporters.
public
add_to_menus() : mixed
Return values
mixed —admin_scripts()
Enqueue scripts.
public
admin_scripts() : mixed
Return values
mixed —do_ajax_product_export()
AJAX callback for doing the actual export to the CSV file.
public
do_ajax_product_export() : mixed
Return values
mixed —download_export_file()
Serve the generated file.
public
download_export_file() : mixed
Return values
mixed —get_product_types()
Gets the product types that can be exported.
public
static get_product_types() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> — The product types keys and labels.hide_from_menus()
Hide menu items from view so the pages exist, but the menu items do not.
public
hide_from_menus() : mixed
Return values
mixed —product_exporter()
Export page UI.
public
product_exporter() : mixed
Return values
mixed —export_allowed()
Return true if WooCommerce export is allowed for current user, false otherwise.
protected
export_allowed() : bool