Title: Flash Messaging API
Last modified: August 19, 2016

---

# Flash Messaging API

 *  [robertlove](https://wordpress.org/support/users/robertlove/)
 * (@robertlove)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/flash-messaging-api/)
 * Is there a flash messaging API for creating custom flash messages? For example,
   a flash message appears when a plugin is activated:
 * `<div class="updated" id="message"><p>Plugin <strong>activated</strong>.</p></
   div>`
 * How can you modify the message stack? Is there even a message stack?
 * If not, does anyone have a best-practice hack?

Viewing 1 replies (of 1 total)

 *  [WraithKenny](https://wordpress.org/support/users/wraithkenny/)
 * (@wraithkenny)
 * [15 years ago](https://wordpress.org/support/topic/flash-messaging-api/#post-1801038)
 * Take a look in [http://core.trac.wordpress.org/browser/trunk/wp-admin/admin-header.php#L200](http://core.trac.wordpress.org/browser/trunk/wp-admin/admin-header.php#L200)
 * Looks like you’d just have to add an action (to the appropriate hook) that echoes
   the markup of your message. Doesn’t seem to be any tutorials, but it seems simple
   enough.
 * Alternatively, if it’s your plugin’s option page, you can do something similar
   to [http://core.trac.wordpress.org/browser/trunk/wp-admin/update-core.php#L128](http://core.trac.wordpress.org/browser/trunk/wp-admin/update-core.php#L128)
   where the message is below the heading.

Viewing 1 replies (of 1 total)

The topic ‘Flash Messaging API’ is closed to new replies.

## Tags

 * [message](https://wordpress.org/support/topic-tag/message/)

 * 1 reply
 * 2 participants
 * Last reply from: [WraithKenny](https://wordpress.org/support/users/wraithkenny/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/flash-messaging-api/#post-1801038)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
