WC_Admin_Importers::import_allowed()

Return true if WooCommerce imports are allowed for current user, false otherwise.


Description Description


Return Return

(bool) Whether current user can perform imports.


Top ↑

Source Source

File: includes/admin/class-wc-admin-importers.php

	protected function import_allowed() {
		return current_user_can( 'edit_products' ) && current_user_can( 'import' );
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.