flowcrafter_node_capabilities

  1. Description
  2. Usage
  3. Parameters
  4. Examples
    1. Add a capability to a node type
  5. Since

Description

Filter the capabilities reported for a node type. Third-party nodes can add custom capability strings here.

Usage

Add a capability to a node type.

add_filter( 'flowcrafter_node_capabilities', 'my_custom_function' );

Parameters

$caps string[]

The capability strings.

$type string

The node type identifier.

$handler Node_Handler

The handler instance.

Examples

Add a capability to a node type

add_filter( 'flowcrafter_node_capabilities', function ( $caps ) {
    $caps[] = 'exports_data';
    return $caps;
} );

Since

  • 1.0-beta-1 Hook added.