flowcrafter_editor_scripts

  1. Description
  2. Usage
  3. Parameters
  4. Examples
    1. Enqueue scripts for the workflow editor
  5. Since

Description

Fires after the workflow editor script is enqueued and localized. Third-party plugins should enqueue their node type bundles here, with ‘flowcrafter-editor’ as a dependency.

Usage

Enqueue scripts for the workflow editor.

add_action( 'flowcrafter_editor_scripts', 'my_custom_function' );

Parameters

$flowcrafter Flowcrafter

The Flowcrafter plugin instance.

Examples

Enqueue scripts for the workflow editor

add_action( 'flowcrafter_editor_scripts', function () {
    wp_enqueue_script( 'my-flowcrafter-editor' );
} );

Since

  • 1.0-beta-1 Hook added.