Automattic\WooCommerce\Blueprint\Importers

ImportActivateTheme::check_step_capabilities │ public │ WC 1.0

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

Method of the class: ImportActivateTheme{}

No Hooks.

Returns

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

Usage

$ImportActivateTheme = new ImportActivateTheme();
$ImportActivateTheme->check_step_capabilities( $schema ): bool;
$schema(object) (required)
The schema to process.

ImportActivateTheme::check_step_capabilities() code WC 11.1.2

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