Automattic\WooCommerce\Blueprint\Exporters

ExportInstallPluginSteps::check_step_capabilities │ public │ WC 1.0

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

Метод класса: ExportInstallPluginSteps{}

Хуков нет.

Возвращает

bool. True if the user has the required capabilities. False otherwise.

Использование

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

Код ExportInstallPluginSteps::check_step_capabilities() WC 11.2.2

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