WooCommerce Code Reference

Initializer
in package

Initializes the core blocks renderers.

Table of Contents

adjust_theme_json()  : WP_Theme_JSON
Adjusts the editor's theme to add blocks specific settings for core blocks.
allow_styles()  : array<string|int, mixed>
Allow styles for the email editor.
initialize()  : void
Initializes the core blocks renderers.
register_core_blocks_renderers()  : void
Register core blocks email renderers when the blocks renderer is initialized.

Methods

adjust_theme_json()

Adjusts the editor's theme to add blocks specific settings for core blocks.

public adjust_theme_json(WP_Theme_JSON $editor_theme_json) : WP_Theme_JSON
Parameters
$editor_theme_json : WP_Theme_JSON

Editor theme JSON.

Return values
WP_Theme_JSON

allow_styles()

Allow styles for the email editor.

public allow_styles(array<string|int, mixed>|null $allowed_styles) : array<string|int, mixed>
Parameters
$allowed_styles : array<string|int, mixed>|null

Allowed styles.

Return values
array<string|int, mixed>