flowcrafter_advertised_node_types

  1. Description
  2. Usage
  3. Parameters
  4. Examples
    1. Advertise a node supplied by another product
  5. Since

Description

Advertise node types from add-ons that are not currently installed. Each entry is an associative array with the same shape as a registered node type, plus:

  • available (bool) false — signals the node is locked in the picker.
  • requires (string) Human-readable product name, e.g. ‘GC Google Sheets’.
  • product_url (string) URL to the product page. Add-on plugins should hook here and push their node definitions only when their plugin is NOT active (i.e. when they haven’t registered via flowcrafter_register_nodes). Malformed entries are dropped individually after normalize; valid siblings remain. Advertised / filter entries never override an already-registered type key.

Usage

Advertise a node supplied by another product.

add_filter( 'flowcrafter_advertised_node_types', 'my_custom_function' );

Parameters

$advertised array

Candidate advertised node rows (may include malformed entries).

$registered string[]

Type keys already registered and available.

Examples

add_filter( 'flowcrafter_advertised_node_types', function ( $nodes ) {
    $nodes[] = [ 'type' => 'MyNode', 'label' => 'My node' ];
    return $nodes;
} );

Since

  • 1.0-beta-1 Hook added.