Title: Customize WordPress error message
Last modified: May 27, 2021

---

# Customize WordPress error message

 *  [Jon Cuevas](https://wordpress.org/support/users/archondigital/)
 * (@archondigital)
 * [5 years ago](https://wordpress.org/support/topic/customize-wordpress-error-message/)
 * Hi your plugin works great and is proving very useful in my latest project.
 * However, in my use case, I had to edit code in the plugin to change this message
   into something more apt for the project I’m working on:
 * “ERROR: You’re not allowed to initiate a new session because your maximum number
   of active sessions has been reached.”
 * Would it be possible in the future to allow us to add our own custom error messages
   or maybe even a simple rich text editor or custom HTML to display our own messages?
 * Thanks!
    -  This topic was modified 5 years ago by [Jon Cuevas](https://wordpress.org/support/users/archondigital/).

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Pierre Lannoy](https://wordpress.org/support/users/pierrelannoy/)
 * (@pierrelannoy)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/customize-wordpress-error-message/#post-14503039)
 * Hello Jon!
    That’s a great suggestion. I add it to my backlog… It will be in 
   the next release.
 * Thanks 🙂
 *  Plugin Author [Pierre Lannoy](https://wordpress.org/support/users/pierrelannoy/)
 * (@pierrelannoy)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/customize-wordpress-error-message/#post-14510199)
 * Hello [@archondigital](https://wordpress.org/support/users/archondigital/) !
   
   In the meantime, you can use the filter hooks included in Sessions to customize
   the messages: `sessions_bad_ip_message` and `sessions_blocked_message`…
 *  Thread Starter [Jon Cuevas](https://wordpress.org/support/users/archondigital/)
 * (@archondigital)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/customize-wordpress-error-message/#post-14514556)
 * Hi [@pierrelannoy](https://wordpress.org/support/users/pierrelannoy/),
 * Those hooks work perfectly.
 * Thank you.
 *  [chernenkopetro](https://wordpress.org/support/users/chernenkopetro/)
 * (@chernenkopetro)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/customize-wordpress-error-message/#post-14522319)
 * Hi [@archondigital](https://wordpress.org/support/users/archondigital/)
    Would
   you pls provide your code for functions.php

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Customize WordPress error message’ is closed to new replies.

 * ![](https://ps.w.org/sessions/assets/icon-256x256.png?rev=2266516)
 * [Sessions](https://wordpress.org/plugins/sessions/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sessions/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sessions/)
 * [Active Topics](https://wordpress.org/support/plugin/sessions/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sessions/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sessions/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [chernenkopetro](https://wordpress.org/support/users/chernenkopetro/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/customize-wordpress-error-message/#post-14522319)
 * Status: not a support question