• VigilanteNighthawk

    (@vigilantenighthawk)


    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?

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘Theme Customizer Error Feedback?’ is closed to new replies.