Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 1 replies (of 1 total)
  • @nehilmehta

    Participant

    Hi,

    You can use below custom code to select hidden as default radio button

    function rizen_make_new_group_hidden( $group_ref_array )
    {
    if ( current_user_can( ‘manage_options’ ) )
    {
    return $group_ref_array;
    }

    $group_ref_array->status = ‘hidden’;

    return $group_ref_array;
    }
    add_filter( ‘groups_group_before_save’, ‘rizen_make_new_group_hidden’ );

    I am still looking to get the default option to select the radio button to create group by all members. If you have any luck, pls. share.

    Thanks

Viewing 1 replies (of 1 total)
Skip to toolbar