WooCommerce Code Reference

IntegrationInterface

Integration.Interface

Integrations must use this interface when registering themselves with blocks,

Table of Contents

get_editor_script_handles()  : array<string|int, string>
Returns an array of script handles to enqueue in the editor context.
get_name()  : string
The name of the integration.
get_script_data()  : array<string|int, mixed>
An array of key, value pairs of data made available to the block on the client side.
get_script_handles()  : array<string|int, string>
Returns an array of script handles to enqueue in the frontend context.
initialize()  : mixed
When called invokes any initialization/setup for the integration.

Methods

get_editor_script_handles()

Returns an array of script handles to enqueue in the editor context.

public get_editor_script_handles() : array<string|int, string>
Return values
array<string|int, string>

get_script_data()

An array of key, value pairs of data made available to the block on the client side.

public get_script_data() : array<string|int, mixed>
Return values
array<string|int, mixed>

get_script_handles()

Returns an array of script handles to enqueue in the frontend context.

public get_script_handles() : array<string|int, string>
Return values
array<string|int, string>