flowcrafter_register_nodes

  1. Description
  2. Usage
  3. Parameters
  4. Examples
    1. Register a custom node type
  5. Since

Description

Allow third-party plugins to register custom node types.

Usage

Register a custom node type.

add_action( 'flowcrafter_register_nodes', 'my_custom_function' );

Parameters

$registry_class string

The Node_Registry class name for calling ::register().

Examples

Register a custom node type

add_action( 'flowcrafter_register_nodes', function ( $registry ) {
    $registry::register( 'MyNode', My_Node::class );
} );

Since

  • 1.0-beta-1 Hook added.