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
if ( !function_exists( 'nf_form_nonce' ) ) { require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/display/form/nonce.php'; } // The form id. $form_id = null; // NOTICE! Understand what this does before running. $result = nf_form_nonce($form_id);
Defined (1)
The function is defined in the following location(s).
- /deprecated/includes/display/form/nonce.php
- function nf_form_nonce( $form_id ) {
- wp_nonce_field( 'nf_form_' . $form_id );
- }