nf_form_nonce

Insert a nonce field into our form.

Description

nf_form_nonce( $form_id ); 

Parameters (1)

0. $form_id
The form id.

Usage

  1. if ( !function_exists( 'nf_form_nonce' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/display/form/nonce.php'; 
  3.  
  4. // The form id. 
  5. $form_id = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = nf_form_nonce($form_id); 
  9.  

Defined (1)

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

/deprecated/includes/display/form/nonce.php  
  1. function nf_form_nonce( $form_id ) { 
  2. wp_nonce_field( 'nf_form_' . $form_id );