bp_xprofile_sanitize_field_options( mixed $field_options = '' )
Sanitize each field option name for saving to the database.
Description
Parameters
- $field_options
-
(Optional) Options to sanitize.
Default value: ''
Return
(mixed)
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 ); } }
Changelog
Version | Description |
---|---|
BuddyPress 2.3.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.