acf_nonce_input()
This function will create and echo a basic nonce input
No Hooks.
Returns
null. Nothing (null).
Usage
acf_nonce_input( $nonce );
- $nonce(string)
- The nonce parameter string.
Default:''
Changelog
| Since 5.6.0 | Introduced. |
acf_nonce_input() acf nonce input code ACF 6.8.8
function acf_nonce_input( $nonce = '' ) {
echo '<input type="hidden" name="_acf_nonce" value="' . esc_attr( wp_create_nonce( $nonce ) ) . '" />';
}