Skip to main content

i4w_nonce_field

Usage

This shortcode enables you to embed a WordPress nonce field in your page or post content.

[ELSE_nonce_field] conditional branching is NOT supported.

Shortcode nesting is NOT supported.

Parameters

ParameterDescriptionDefaultRequired
actionThe name of an action to be used to verify the posted form's integrity.-1No
nameThe hidden field name to be generated for your form._wpnonceNo
referrerInclude the referrer in the integrity check.FalseNo

Example

Shortcode
[i4w_nonce_field]
Shortcode
[i4w_nonce_field action='myaction']

Notes

info

Please refer to the WordPress documentation on wp_nonce_field for more details.