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

Mailchimp List Subscribe Form, version 2.0.0. 82 lines.

- Page: https://pluginprobe.com/plugins/mailchimp/2.0.0/code/includes/admin/admin-notices.php
- Raw: https://pluginprobe.com/plugins/mailchimp/2.0.0/raw/includes/admin/admin-notices.php
- Modified: 2025-04-08T19:32:20+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/2.0.0/code/includes/admin/admin-notices.php#L10-L20`.

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

namespace Mailchimp\WordPress\Includes\Admin;

/**
 * Display success admin notice.
 *
 * NOTE: WordPress localization i18n functionality should be done
 * on string literals outside of this function in order to work
 * correctly.
 *
 * For more info read here: https://salferrarello.com/why-__-needs-a-hardcoded-string-in-wordpress/
 *
 * @since 1.7.0
 * @param string $msg The message to display.
 * @return void
 */
function admin_notice_success( string $msg ) {
	?>
	<div class="notice notice-success is-dismissible">
		<p>
		<?php
		echo wp_kses(
			$msg,
			array(
				'a'      => array(
					'href'   => array(),
					'title'  => array(),
					'target' => array(),
				),
				'strong' => array(),
				'em'     => array(),
				'br'     => array(),
			)
		);
		?>
		</p>
	</div>
	<?php
}

/**
 * Display error admin notice.
 *
 * NOTE: WordPress localization i18n functionality should be done
 * on string literals outside of this function in order to work
 * correctly.
 *
 * For more info read here: https://salferrarello.com/why-__-needs-a-hardcoded-string-in-wordpress/
 *
 * @since 1.7.0
 * @param string $msg The message to display.
 * @return void
 */
function admin_notice_error( string $msg ) {
	?>
	<div class="notice notice-error">
		<p>
		<?php
		echo wp_kses(
			$msg,
			array(
				'a'      => array(
					'href'   => array(),
					'title'  => array(),
					'target' => array(),
				),
				'strong' => array(),
				'em'     => array(),
			)
		);
		?>
		</p>
	</div>
	<?php
}

```
