# mailchimp/trunk/includes/admin/admin-notices.php

Mailchimp List Subscribe Form, version trunk. 37 lines.

- Page: https://pluginprobe.com/plugins/mailchimp/trunk/code/includes/admin/admin-notices.php
- Raw: https://pluginprobe.com/plugins/mailchimp/trunk/raw/includes/admin/admin-notices.php
- Modified: 2026-06-03T16:20:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/mailchimp/trunk/code/includes/admin/admin-notices.php#L10-L20`.

```php
<?php
/**
 * Admin notices.
 *
 * @package Mailchimp
 */

namespace Mailchimp\WordPress\Includes\Admin;

/**
 * Display success admin notice.
 * This function is now a wrapper around the Mailchimp_Admin_Notices class, will be deprecated in future versions. Use that class instead.
 *
 * @since 1.7.0
 * @since 2.1.0 - Moved notice rendering to class-mailchimp-admin-notices.php
 *
 * @param string $msg The message to display.
 * @return void
 */
function admin_notice_success( string $msg ) {
	\Mailchimp_Admin_Notices::instance()->add( $msg, 'success' );
}

/**
 * Display error admin notice.
 * This function is now a wrapper around the Mailchimp_Admin_Notices class, will be deprecated in future versions. Use that class instead.
 *
 * @since 1.7.0
 * @since 2.1.0 - Moved notice rendering to class-mailchimp-admin-notices.php
 *
 * @param string $msg The message to display.
 * @return void
 */
function admin_notice_error( string $msg ) {
	\Mailchimp_Admin_Notices::instance()->add( $msg, 'error' );
}

```
