bp_groups_type_admin_updated_messages( array $messages = array() )

Set the feedback messages for the Group Types Admin actions.


Parameters Parameters

$messages

(array) (Optional) The feedback messages.

Default value: array()


Top ↑

Return Return

(array) The feedback messages including the ones for the Group Types Admin actions.


Source Source

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

function bp_groups_type_admin_updated_messages( $messages = array() ) {
	$type_taxonomy = bp_get_group_type_tax_name();

	$messages[ $type_taxonomy ] = array(
		0  => '',
		1  => __( 'Please define the Group Type ID field.', 'buddypress' ),
		2  => __( 'Group type successfully added.', 'buddypress' ),
		3  => __( 'Sorry, there was an error and the Group type wasn’t added.', 'buddypress' ),
		// The following one needs to be != 5.
		4  => __( 'Group type successfully updated.', 'buddypress' ),
		5  => __( 'Sorry, this Group type already exists.', 'buddypress' ),
		6  => __( 'Sorry, the Group type was not deleted: it does not exist.', 'buddypress' ),
		7  => __( 'Sorry, This Group type is registered using code, deactivate the plugin or remove the custom code before trying to delete it again.', 'buddypress' ),
		8  => __( 'Sorry, there was an error while trying to delete this Group type.', 'buddypress' ),
		9  => __( 'Group type successfully deleted.', 'buddypress' ),
		10 => __( 'Group type could not be updated due to missing required information.', 'buddypress' ),
	);

	return $messages;
}


Top ↑

Changelog Changelog

Changelog
Version Description
7.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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