bp_groups_admin_groups_type_change_notice()
Display an admin notice upon group type bulk update.
Description
Source
File: bp-groups/bp-groups-admin.php
function bp_groups_admin_groups_type_change_notice() { $updated = isset( $_REQUEST['updated'] ) ? $_REQUEST['updated'] : false; // Display feedback. if ( $updated && in_array( $updated, array( 'group-type-change-error', 'group-type-change-success' ), true ) ) { if ( 'group-type-change-error' === $updated ) { $notice = __( 'There was an error while changing group type. Please try again.', 'buddyboss' ); $type = 'error'; } else { $notice = __( 'Group type was changed successfully.', 'buddyboss' ); $type = 'updated'; } bp_core_add_admin_notice( $notice, $type ); } }
Changelog
Version | Description |
---|---|
BuddyPress 2.7.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.