WordPress.org

Ready to get started?Download WordPress

Forums

Hacking wp_die to send email (5 posts)

  1. mrmist
    Forum Janitor
    Posted 6 years ago #

    Hello.

    For a while now, my blog has been crashing out due to various db connectivity issues and a problem with commenting.

    When this happens, the users get fairly ugly wp_die error messages, and I, as the webmaster, get to know nothing.

    I'd like to hack wp_die (directly, 'cos there doesn't seem to be a pluggable override) to send an email to me when it gets called.

    My questions are -

    Any reason why I can't/shouldn't do this?

    What is the name of the function that WordPress uses to send its emails. I'd rather use existing functionality if I can, but I can't find the functions.

  2. mrmist
    Forum Janitor
    Posted 6 years ago #

    Any ideas folk?

  3. mrmist
    Forum Janitor
    Posted 6 years ago #

    Last try then at bumping this in case someone else is on who knows.

    Surely someone must know what the send an email function is called? :)

  4. Chris_K
    Member
    Posted 6 years ago #

    You might give the WP-Hackers mailing list a try (see Mailing_Lists).

  5. mrmist
    Forum Janitor
    Posted 6 years ago #

    ok cheers

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags