Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [error-handling]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5
votes
1answer
507 views

Showing WP_Error message with admin_notice action hook

I have just get an answer to one of my question but the problem is I want to print an error when every user will insert tags of more than two words through post-new.php with admin_notice action hook. ...
0
votes
1answer
500 views

Disable Debug Log Programmatically

I'm trying to disable WP_DEBUG_LOG if and only if debug.log exists. I'd like to hook into wp_footer and test if the file exists and if so disable my debug log. All I've found though is that ...
3
votes
2answers
9k views

How to show an error message after publishing a post?

I'm using the transition_post_status hook to perform some operations after publishing a post. In some conditions I would like to show an error message in a red box under "Edit Post" and above "Post ...
0
votes
1answer
4k views

How to log plugin errors to plugin error_log file

How can errors, specific to a given plugin, be logged to an error_log file contained within the plugin root folder itself? Examples: Syntax errors Database errors Compatibility errors PHP fatal ...