PluginProbe
Mailchimp List Subscribe Form / trunk
Mailchimp List Subscribe Form vtrunk
1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.5 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6.0 1.6.1 All 55 releases
mailchimp / includes / admin / admin-notices.php

admin-notices.php in Mailchimp List Subscribe Form trunk, at includes/admin/admin-notices.php

37 lines 1008 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Admin notices.
4 *
5 * @package Mailchimp
6 */
7
8 namespace Mailchimp\WordPress\Includes\Admin;
9
10 /**
11 * Display success admin notice.
12 * This function is now a wrapper around the Mailchimp_Admin_Notices class, will be deprecated in future versions. Use that class instead.
13 *
14 * @since 1.7.0
15 * @since 2.1.0 - Moved notice rendering to class-mailchimp-admin-notices.php
16 *
17 * @param string $msg The message to display.
18 * @return void
19 */
20 function admin_notice_success( string $msg ) {
21 \Mailchimp_Admin_Notices::instance()->add( $msg, 'success' );
22 }
23
24 /**
25 * Display error admin notice.
26 * This function is now a wrapper around the Mailchimp_Admin_Notices class, will be deprecated in future versions. Use that class instead.
27 *
28 * @since 1.7.0
29 * @since 2.1.0 - Moved notice rendering to class-mailchimp-admin-notices.php
30 *
31 * @param string $msg The message to display.
32 * @return void
33 */
34 function admin_notice_error( string $msg ) {
35 \Mailchimp_Admin_Notices::instance()->add( $msg, 'error' );
36 }
37