WC_Twenty_Twenty
in package
WC_Twenty_Twenty class.
Table of Contents
- enqueue_styles() : array<string|int, mixed>
- Enqueue CSS for this theme.
- init() : mixed
- Theme init.
- output_content_wrapper() : mixed
- Open the Twenty Twenty wrapper.
- output_content_wrapper_end() : mixed
- Close the Twenty Twenty wrapper.
- set_white_background() : mixed
- Set background color to white if it's default, otherwise don't touch it.
Methods
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> —init()
Theme init.
public
static init() : mixed
Return values
mixed —output_content_wrapper()
Open the Twenty Twenty wrapper.
public
static output_content_wrapper() : mixed
Return values
mixed —output_content_wrapper_end()
Close the Twenty Twenty wrapper.
public
static output_content_wrapper_end() : mixed
Return values
mixed —set_white_background()
Set background color to white if it's default, otherwise don't touch it.
public
static set_white_background() : mixed