bp_groups_admin_edit_metabox_add_new_members( BP_Groups_Group $item )

Output the markup for a single group’s Add New Members metabox.


Parameters Parameters

$item

(BP_Groups_Group) (Required) The BP_Groups_Group object for the current group.


Source Source

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

function bp_groups_admin_edit_metabox_add_new_members( $item ) {
	if ( bp_is_large_install() ) {
		$class  = '';
		$notice = __( 'Enter a comma-separated list of user logins.', 'buddypress' );
	} else {
		$class  = 'bp-suggest-user';
		$notice = '';
	}

	?>

	<label for="bp-groups-new-members" class="screen-reader-text"><?php
		/* translators: accessibility text */
		_e( 'Add new members', 'buddypress' );
	?></label>
	<input name="bp-groups-new-members" type="text" id="bp-groups-new-members" class="<?php echo esc_attr( $class ); ?>" placeholder="" />
	<?php if ( $notice ) : ?>
		<p class="description"><?php echo esc_html( $notice ); ?></p>
	<?php endif; ?>
	<ul id="bp-groups-new-members-list"></ul>
	<?php
}


Top ↑

Changelog Changelog

Changelog
Version Description
1.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.