bp_xprofile_sanitize_field_options( mixed $field_options = '' )

Sanitize each field option name for saving to the database.


Description Description


Parameters Parameters

$field_options

(Optional) Options to sanitize.

Default value: ''


Top ↑

Return Return

(mixed)


Top ↑

Source Source

File: bp-xprofile/bp-xprofile-filters.php

function bp_xprofile_sanitize_field_options( $field_options = '' ) {
	if ( is_array( $field_options ) ) {
		return array_map( 'sanitize_text_field', $field_options );
	} else {
		return sanitize_text_field( $field_options );
	}
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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