WooCommerce Code Reference

WC_Admin_Exporters
in package

WC_Admin_Exporters Class.

Table of Contents

$exporters  : 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.
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

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.