bbp_sanitize_val( string $request = '', string $input_type = 'text' )

Echo sanitized $_REQUEST value.


Description Description

Use the $input_type parameter to properly process the value. This ensures correct sanitization of the value for the receiving input.


Parameters Parameters

$request

(Optional) Name of $_REQUEST to look for

Default value: ''

$input_type

(Optional) Type of input. Default: text. Accepts: textarea|password|select|radio|checkbox

Default value: 'text'


Top ↑

Source Source

File: includes/common/template.php

function bbp_sanitize_val( $request = '', $input_type = 'text' ) {
	echo bbp_get_sanitize_val( $request, $input_type );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.