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
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.