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