Troubleshooting WordPress errors from functions.php

Troubleshooting WordPress errors from functions.php

Solution:

Use get_template_directory() when requiring files in your theme.

Instantiate your class using new theme_ThemeFunctions inside the class itself.

To view errors, enable debugging by adding this to your wp-config.php:

define(‘WP_DEBUG’, true);
define(‘WP_DEBUG_DISPLAY’, true);

Feel Free To Message Us