WordPress.org

Ready to get started?Download WordPress

Forums

Possible to override wp_die() ? (4 posts)

  1. 10-nice
    Member
    Posted 4 years ago #

    Hello,

    I search on the Internet but didn't found anything about override the wp_die() function.

    Is there any way just catch the parameters and do anything we want with it?

    I don't want to let the default wp_die() (even if it's customizable with CSS), I wish to display error messages with shadowbox for example. In my case this is comment submit errors that I wish to display this way.

    Does anybody help me?

    Thanks a lot !

  2. 10-nice
    Member
    Posted 4 years ago #

    Nobody can help me ?

    I think I will have to duplicate the wp_comments_post.php page to no delete it when I will have to update my WP version :(

  3. akabin
    Member
    Posted 3 years ago #

    I was looking for the same thing. Anyone figure out a way to customize wp_die() without having to alter wp_comments_post.php?

  4. Mike Walker
    Member
    Posted 3 years ago #

    Use the 'wp_die_handler' filter and return the name of your own die handler function.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags