# wp-to-buffer/6.2.5/lib/shared/js/notification.js

Social Media Auto Poster – Schedule &amp; Publish to Buffer, version 6.2.5. 75 lines.

- Page: https://pluginprobe.com/plugins/wp-to-buffer/6.2.5/code/lib/shared/js/notification.js
- Raw: https://pluginprobe.com/plugins/wp-to-buffer/6.2.5/raw/lib/shared/js/notification.js
- Modified: 2026-08-19T11:19:16+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/wp-to-buffer/6.2.5/code/lib/shared/js/notification.js#L10-L20`.

```javascript
/**
 * Inline notification functionality.
 *
 * @package WPZincDashboardWidget
 * @author WP Zinc
 */

/**
 * Show a success message.
 *
 * @since 	1.0.0
 *
 * @param 	string 	message 	Success Message to display.
 */
function wpzinc_notification_show_success_message( message ) {

	wpzinc_notification_show( message, 'success' );

}

/**
 * Show a warning message.
 *
 * @since 	1.0.0
 *
 * @param 	string 	message 	Warning Message to display.
 */
function wpzinc_notification_show_warning_message( message ) {

	wpzinc_notification_show( message, 'warning' );

}

/**
 * Show an error message.
 *
 * @since 	1.0.0
 *
 * @param 	string 	message 	Error Message to display.
 */
function wpzinc_notification_show_error_message( message ) {

	wpzinc_notification_show( message, 'error' );

}

/**
 * Show a message.
 *
 * @since 	1.0.0
 *
 * @param 	string 	message 	Message to display.
 * @param 	string 	type 		Message Type (success,warning,error)
 */
function wpzinc_notification_show( message, type ) {

	jQuery( '.wpzinc-notification' ).text( message );
	jQuery( '.wpzinc-notification' ).addClass( 'wpzinc-notification-' + type );
	jQuery( '.wpzinc-notification' ).fadeIn( 'fast' );

	setTimeout(
		function () {
			jQuery( '.wpzinc-notification' ).fadeOut(
				'fast',
				function () {
					jQuery( '.wpzinc-notification' ).removeClass( 'wpzinc-notification-' + type );
					jQuery( '.wpzinc-notification' ).hide();
				}
			);
		},
		2000
	);

}

```
