Automattic\WooCommerce\Blueprint\Importers

ImportInstallPlugin::check_step_capabilities │ public │ WC 1.0

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

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

Хуков нет.

Возвращает

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

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

$ImportInstallPlugin = new ImportInstallPlugin();
$ImportInstallPlugin->check_step_capabilities( $schema ): bool;
$schema(объект) (обязательный)
The schema to process.

Код ImportInstallPlugin::check_step_capabilities() WC 11.2.1

public function check_step_capabilities( $schema ): bool {
	return current_user_can( 'install_plugins' );
}