nf_delete_field_capabilities

The Ninja Forms nf delete field capabilities hook.

Description

add_filter( 'nf_delete_field_capabilities', (string) $nf_add_permissions_filters ); 

Parameters (1)

0. $nf_add_permissions_filters (string) => 'nf_add_permissions_filters'
The nf add permissions filters.

Usage

To run the hook, copy the example below.
  1. $nf_add_permissions_filters = apply_filters( 'nf_delete_field_capabilities', $nf_add_permissions_filters ); 
  2.  
  3. if ( !empty( $nf_add_permissions_filters ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the nf_delete_field_capabilities callback 
  2. function filter_nf_delete_field_capabilities( $nf_add_permissions_filters ) { 
  3. // make filter magic happen here... 
  4. return $nf_add_permissions_filters
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'nf_delete_field_capabilities', 'filter_nf_delete_field_capabilities', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'nf_delete_field_capabilities', 'filter_nf_delete_field_capabilities', 10, 1 ); 

Defined (1)

The filter is defined in the following location(s).

/deprecated/includes/functions.php  
  1. add_filter( 'nf_delete_field_capabilities', 'nf_add_permissions_filters' );