An idea: Use creation of WP_Error objects as a way of tracking application exceptions. If WP_Error had an action in the __construct()
method, you could easily error_log()
WP_Error codes and messages.
Can someone tell me why this is a bad idea (other than exploding your error log), or whether there’s a better approach?
Leave a Reply