WooCommerce Code Reference

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

Methods

get_product_types()

Gets the product types that can be exported.

public static get_product_types() : array<string|int, mixed>
Tags
since
5.1.0
Return values
array<string|int, mixed>The product types keys and labels.

export_allowed()

Return true if WooCommerce export is allowed for current user, false otherwise.

protected export_allowed() : bool
Return values
boolWhether current user can perform export.