Automattic\WooCommerce\Blueprint\Exporters

ExportInstallPluginSteps::check_step_capabilitiespublicWC 1.0

Check if the current user has the required capabilities for this step.

Method of the class: ExportInstallPluginSteps{}

No Hooks.

Returns

true|false. True if the user has the required capabilities. False otherwise.

Usage

$ExportInstallPluginSteps = new ExportInstallPluginSteps();
$ExportInstallPluginSteps->check_step_capabilities(): bool;

ExportInstallPluginSteps::check_step_capabilities() code WC 9.9.5

public function check_step_capabilities(): bool {
	return current_user_can( 'activate_plugins' );
}