bp_group_hidden_fields()

Output hidden form fields for group.

Description

This function is no longer used, but may still be used by older themes.

Source

File: bp-groups/bp-groups-template.php

4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
function bp_group_hidden_fields() {
    $query_arg = bp_core_get_component_search_query_arg( 'groups' );
 
    if ( isset( $_REQUEST[ $query_arg ] ) ) {
        echo '<input type="hidden" id="search_terms" value="' . esc_attr( $_REQUEST[ $query_arg ] ) . '" name="search_terms" />';
    }
 
    if ( isset( $_REQUEST['letter'] ) ) {
        echo '<input type="hidden" id="selected_letter" value="' . esc_attr( $_REQUEST['letter'] ) . '" name="selected_letter" />';
    }
 
    if ( isset( $_REQUEST['groups_search'] ) ) {
        echo '<input type="hidden" id="search_terms" value="' . esc_attr( $_REQUEST['groups_search'] ) . '" name="search_terms" />';
    }
}

Changelog

Changelog
Version Description
BuddyPress 1.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.