WooCommerce Code Reference

WC_Twenty_Nineteen
in package

WC_Twenty_Nineteen class.

Table of Contents

custom_colors_css()  : mixed
Filters Twenty Nineteen custom colors CSS.
enqueue_styles()  : array<string|int, mixed>
Enqueue CSS for this theme.
init()  : mixed
Theme init.
output_content_wrapper()  : mixed
Open the Twenty Nineteen wrapper.
output_content_wrapper_end()  : mixed
Close the Twenty Nineteen wrapper.
tweak_theme_features()  : mixed
Tweak Twenty Nineteen features.

Methods

custom_colors_css()

Filters Twenty Nineteen custom colors CSS.

public static custom_colors_css(string $css, int $primary_color, string $saturation) : mixed
Parameters
$css : string

Base theme colors CSS.

$primary_color : int

The user's selected color hue.

$saturation : string

Filtered theme color saturation level.

Return values
mixed

enqueue_styles()

Enqueue CSS for this theme.

public static enqueue_styles(array<string|int, mixed> $styles) : array<string|int, mixed>
Parameters
$styles : array<string|int, mixed>

Array of registered styles.

Return values
array<string|int, mixed>