bp_nouveau_get_filter_options()
Get the <option>
of the data filter’s <select>
element.
Description
Return
(string)
Source
File: bp-templates/bp-nouveau/includes/template-tags.php
2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 | function bp_nouveau_get_filter_options() { $output = '' ; if ( 'notifications' === bp_current_component() ) { $output = bp_nouveau_get_notifications_filters(); } else { $filters = bp_nouveau_get_component_filters(); foreach ( $filters as $key => $value ) { $output .= sprintf( '<option value="%1$s">%2$s</option>%3$s' , esc_attr( $key ), esc_html( $value ), PHP_EOL ); } } return $output ; } |
Changelog
Version | Description |
---|---|
BuddyPress 3.0.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.