acf_maybe_get_POST()
No Hooks.
Returns
null. Nothing (null).
Usage
acf_maybe_get_POST( $key, $default );
- $key
- .
Default:'' - $default
- .
Default:null
acf_maybe_get_POST() acf maybe get POST code ACF 6.8.8
function acf_maybe_get_POST( $key = '', $default = null ) {
return isset( $_POST[ $key ] ) ? acf_sanitize_request_args( $_POST[ $key ] ) : $default; // phpcs:ignore WordPress.Security.NonceVerification.Recommended, WordPress.Security.NonceVerification.Missing -- Checked elsewhere.
}