nf_edit_field_<key>

The Ninja Forms nf edit field key hook.

Description

do_action( 'nf_edit_field_<key>', (unknown) $field_id, (unknown) $field_data ); 

Parameters (2)

0. $field_id (unknown)
The field id.
1. $field_data (unknown)
The field data.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'nf_edit_field_{$key}', $field_id, $field_data ); 
The following example is for adding a hook callback.
  1. // define the nf_edit_field_<key> callback 
  2. function action_nf_edit_field_key( $field_id, $field_data ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( "nf_edit_field_{$key}", 'action_nf_edit_field_key', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( "nf_edit_field_{$key}", 'action_nf_edit_field_key', 10, 2 ); 

Defined (1)

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

/deprecated/includes/admin/edit-field/li.php  
  1. do_action( 'nf_edit_field_' . $key, $field_id, $field_data );