acf_request_arg()ACF 5.9.2

Returns a single $_REQUEST arg with fallback.

No Hooks.

Returns

Mixed.

Usage

acf_request_arg( $name, $default );
$name
.
Default: ''
$default(mixed)
The default value to fallback to.
Default: null

Changelog

Since 5.9.2 Introduced.

acf_request_arg() code ACF 6.0.4

function acf_request_arg( $name = '', $default = null ) {
	return isset( $_REQUEST[ $name ] ) ? acf_sanitize_request_args( $_REQUEST[ $name ] ) : $default; // phpcs:ignore WordPress.Security.NonceVerification.Recommended
}