WordPress.org

Ready to get started?Download WordPress

Forums

Theme Customizer Error Feedback? (2 posts)

  1. VigilanteNighthawk
    Member
    Posted 1 year ago #

    I've looked through the documentation, Google, and the source code, but I cannot figure out how to report error messages back to the admin when setting values via the Theme Customizer. Is there a built in method or some work around that I could use?

  2. bcworkz
    Member
    Posted 1 year ago #

    If these error messages are displayed via the wp_die() function, the function has a mechanism to call a user function. That user function could do anything, including emailing the admin if a particular message was generated. Take a look at the source in wp-includes/functions.php . You hook a certain filter in order to return your user function name. The wp_die() function will then call that function.

Topic Closed

This topic has been closed to new replies.

About this Topic