automator_filter_input( null $variable = null,  $type = INPUT_GET,  $flags = FILTER_SANITIZE_STRING )

Get the $_POST/$_GET/$_REQUEST variable


Parameters Parameters

$type

(Optional)

Default value: INPUT_GET

$variable

(Optional)

Default value: null

$flags

(Optional)

Default value: FILTER_SANITIZE_STRING


Top ↑

Return Return

(mixed)


Source Source

File: src/global-functions.php

function automator_filter_input( $variable = null, $type = INPUT_GET, $flags = FILTER_SANITIZE_STRING ) {
	/*
	 * View input types: https://www.php.net/manual/en/function.filter-input.php
	 * View flags at: https://www.php.net/manual/en/filter.filters.sanitize.php
	 */
	return filter_input( $type, $variable, $flags );
}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0 Introduced.