flowcrafter_editor_localize_data

  1. Description
  2. Usage
  3. Parameters
  4. Examples
    1. Add data for editor extensions
  5. Since

Description

Filter the data localized for the workflow editor script. Third-party plugins can add their icons or other data here.

Usage

Add data for editor extensions.

add_filter( 'flowcrafter_editor_localize_data', 'my_custom_function' );

Parameters

$data array

The localized data array.

Examples

Add data for editor extensions

add_filter( 'flowcrafter_editor_localize_data', function ( $data ) {
    $data['myExtension'] = true;
    return $data;
} );

Since

  • 1.0-beta-1 Hook added.