%3$s', esc_attr( sanitize_key( $filter['id'] ) ), selected( $selected, $filter['id'], false ), esc_html( $filter['label'] ) ) . "\n"; } if ( $output ) { $output = sprintf( '', 0, selected( $selected, 0, false ), esc_html__( '— Everything —', 'buddypress' ) ) . "\n" . $output; } /** * Filter to edit the options output. * * @since 3.0.0 * * @param string $output The options output. * @param array $filters The sorted notifications filters. */ return apply_filters( 'bp_nouveau_get_notifications_filters', $output, $filters ); } /** * Outputs the order action links. * * @since 3.0.0 */ function bp_nouveau_notifications_sort_order_links() { if ( 'unread' === bp_current_action() ) { $link = bp_get_notifications_unread_permalink( bp_displayed_user_id() ); } else { $link = bp_get_notifications_read_permalink( bp_displayed_user_id() ); } $desc = add_query_arg( 'sort_order', 'DESC', $link ); $asc = add_query_arg( 'sort_order', 'ASC', $link ); ?>