Editor
Loads behavior relevant to the admin post editor, including rendering custom buttons, templates, and Gutenberg blocks within the WordPress admin interface. It also handles the integration of the Gutenberg editor with BigCommerce blocks and assets.
- Full name:
\BigCommerce\Container\Editor
- Parent class:
Provider
Constants
Constant | Visibility | Type | Value |
---|---|---|---|
SHORTCODE_BUTTON | public | string | ’admin.shortcode_button’ |
UI_DIALOG | public | string | ’admin.ui_dialog’ |
GUTENBERG_BLOCKS | public | string | ’gutenberg.blocks’ |
GUTENBERG_MIGRATE | public | string | ’gutenberg.migrate’ |
STYLES | public | string | ’gutenberg.styles’ |
Methods
register
Registers the necessary components for the editor, including buttons, dialog templates, and Gutenberg blocks.
public register(\Pimple\Container $container): mixed
This function initializes and sets up the custom behavior for the WordPress admin post editor, integrating custom buttons and templates for a more enhanced editing experience.
Parameters:
Parameter | Type | Description |
---|---|---|
$container | \Pimple\Container | The dependency injection container. |
Automatically generated on 2025-01-21