WC_Admin_Exporters::export_allowed()protectedWC 1.0

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

Method of the class: WC_Admin_Exporters{}

No Hooks.

Return

true|false. Whether current user can perform export.

Usage

// protected - for code of main (parent) or child class
$result = $this->export_allowed();

WC_Admin_Exporters::export_allowed() code WC 8.7.0

protected function export_allowed() {
	return current_user_can( 'edit_products' ) && current_user_can( 'export' );
}