flowcrafter_node_capabilities
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-1Hook added.