Turn On Error Reporting In WordPress

When writing custom queries, it can often be frustrating if you make a mistake in the SQL syntax as WordPress will simply display no results. On a production site, you would most likely want to hide all possible PHP errors, warnings and notices from your users for both usability, presentational and security purposes.

For development and debugging purposes, when you enable error reporting in WordPress you automatically get all errors, notices and warnings so that you can debug your code and ensure that it is working as intended. Add following lines to your wp-config.php file for local development and testing to get more detailed error reporting from your WordPress site.

You may also be interested in our other articles on hotlinking protection and Pyramid free WordPress theme


Comments are closed.

Post Navigation