BP_Members_Admin::invitations_admin()

Member invitations admin page router.


Description Description

Depending on the context, display

  • the list of invitations,
  • or the delete confirmation screen,
  • or the "resend" email confirmation screen.

Also prepare the admin notices.


Source Source

File: bp-members/classes/class-bp-members-admin.php

	public function invitations_admin() {
		$doaction = bp_admin_list_table_current_bulk_action();

		// Prepare notices for admin.
		$notice = $this->get_members_invitations_notice();

		// Display notices.
		if ( ! empty( $notice ) ) :
			if ( 'updated' === $notice['class'] ) : ?>

				<div id="message" class="<?php echo esc_attr( $notice['class'] ); ?> notice is-dismissible">

			<?php else: ?>

				<div class="<?php echo esc_attr( $notice['class'] ); ?> notice is-dismissible">

			<?php endif; ?>

				<p><?php echo $notice['message']; ?></p>
			</div>

		<?php endif;

		// Show the proper screen.
		switch ( $doaction ) {
			case 'delete' :
			case 'resend' :
				$this->invitations_admin_manage( $doaction );
				break;

			default:
				$this->invitations_admin_index();
				break;
		}
	}


Top ↑

Changelog Changelog

Changelog
Version Description
8.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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