# wordpress-seo/18.7/src/helpers/input-helper.php

Yoast SEO – Advanced SEO with real-time guidance and built-in AI, version 18.7. 23 lines.

- Page: https://pluginprobe.com/plugins/wordpress-seo/18.7/code/src/helpers/input-helper.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/18.7/raw/src/helpers/input-helper.php
- Modified: 2021-05-18T13:42:44+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wordpress-seo/18.7/code/src/helpers/input-helper.php#L10-L20`.

```php
<?php

namespace Yoast\WP\SEO\Helpers;

/**
 * A helper object for the filter_input.
 */
class Input_Helper {

	/**
	 * Returns the result of the filter_input. This is mostly a wrapper so we can test.
	 *
	 * @param int    $input_type    The type of input constant (e.g. INPUT_POST, INPUT_GET ).
	 * @param string $search_string The property to get from the input.
	 * @param int    $filter        Optional. The constant that defines the sanitization.
	 *
	 * @return string The result of the get input.
	 */
	public function filter( $input_type, $search_string, $filter = \FILTER_DEFAULT ) {
		return \filter_input( $input_type, $search_string, $filter );
	}
}

```
