bp_ps_Fields::set_filters( $f )
Description
Source
File: bp-core/profile-search/bps-fields.php
public static function set_filters ($f)
{
$format = isset ($f->format)? $f->format: 'none';
$enum = (isset ($f->options) && is_array ($f->options))? count ($f->options): 0;
$selector = $format. ($enum? '/e': '');
if (!isset (self::$display[$selector])) return false;
$f->filters = array_keys (self::$display[$selector]);
return true;
}
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.