WooCommerce Code Reference

Search results

WC_Admin_Exporters

WC_Admin_Exporters Class.

Table of Contents

$exporters Array of exporter IDs. string[]
__construct() Constructor. mixed
export_allowed() Return true if WooCommerce export is allowed for current user, false otherwise. bool
add_to_menus() Add menu items for our custom exporters. mixed
hide_from_menus() Hide menu items from view so the pages exist, but the menu items do not. mixed
admin_scripts() Enqueue scripts. mixed
product_exporter() Export page UI. mixed
download_export_file() Serve the generated file. mixed
do_ajax_product_export() AJAX callback for doing the actual export to the CSV file. mixed

Properties

Methods

export_allowed()

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

protected export_allowed( ) : bool
Return values
bool

Whether current user can perform export.

add_to_menus()

Add menu items for our custom exporters.

public add_to_menus( ) : mixed
Return values
mixed

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

download_export_file()

Serve the generated file.

public download_export_file( ) : 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
Back to the top