WordPress at Your Fingertips
function is not described

WC_Admin_Exporters::export_allowed() protected WC 1.0

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

{} It's a method of the class: WC_Admin_Exporters{}

No Hooks.


true|false. Whether current user can perform export.


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

Code of WC_Admin_Exporters::export_allowed() WC 5.9.0

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