WC_Twenty_Twenty_One::enqueue_styles()public staticWC 1.0

Enqueue CSS for this theme.

Method of the class: WC_Twenty_Twenty_One{}

Hooks from the method

Return

Array.

Usage

$result = WC_Twenty_Twenty_One::enqueue_styles( $styles );
$styles(array) (required)
Array of registered styles.

WC_Twenty_Twenty_One::enqueue_styles() code WC 9.3.1

public static function enqueue_styles( $styles ) {
	unset( $styles['woocommerce-general'] );

	$styles['woocommerce-general'] = array(
		'src'     => str_replace( array( 'http:', 'https:' ), '', WC()->plugin_url() ) . '/assets/css/twenty-twenty-one.css',
		'deps'    => '',
		'version' => Constants::get_constant( 'WC_VERSION' ),
		'media'   => 'all',
		'has_rtl' => true,
	);

	return apply_filters( 'woocommerce_twenty_twenty_one_styles', $styles );
}