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

ConstantVisibilityTypeValue
SHORTCODE_BUTTONpublicstring’admin.shortcode_button’
UI_DIALOGpublicstring’admin.ui_dialog’
GUTENBERG_BLOCKSpublicstring’gutenberg.blocks’
GUTENBERG_MIGRATEpublicstring’gutenberg.migrate’
STYLESpublicstring’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:

ParameterTypeDescription
$container\Pimple\ContainerThe dependency injection container.


Automatically generated on 2025-01-21