WC_Twenty_Twenty::enqueue_styles( array $styles )

Enqueue CSS for this theme.


Description Description


Parameters Parameters

$styles

(Required) Array of registered styles.


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/theme-support/class-wc-twenty-twenty.php

	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.css',
			'deps'    => '',
			'version' => Constants::get_constant( 'WC_VERSION' ),
			'media'   => 'all',
			'has_rtl' => true,
		);

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


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.