While developing WordPress theme we need to consider various factors. There are lot of plugins that help to test and debug WordPress theme.
e.g. For WP.org standards theme, community use Theme Check Plugin to test the standard of theme development guidelines. If you haven’t enabled the WP_DEBUG value, it will display the warning notification like the below.
Here, I am going to guide you on how to enable the WordPress debug mode.
To enable WordPress Debug mode we need to edit the
wp-config.phpin your root WordPress Installation folder.
On local computer :
On Remote Server :
- Add the following code below this comment
/* That’s all, stop editing! Happy blogging. */
define( 'WP_DEBUG', true );
Debugging PHP code can be part of any project, but WordPress comes with specific debug environment designed to simplify the process as well as standardize code across the core, plugins and themes.