The constants documented here can be defined in your site’s wp-config.php
.
For other constants that you can use to fine-tune certain aspects of the search engine, please refer to the section on Constants.
How to enable Debugging
↑ Back to topwp-config.php
to have general PHP and WordPress warnings, error messages and status information from the WooCommerce Product Search extension logged to the site’s debug.log
file. The latter is usually located in the wp-content
folder.
define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false ); define( 'WPS_DEBUG', true );To log main query times, enable the option as described in the General settings.
Debugging Scripts and Styles
↑ Back to topdefine( 'WPS_DEBUG_SCRIPTS', true ); define( 'WPS_DEBUG_STYLES', true );We would also recommend to clear any caches after script or style debugging has been enabled or disabled.
Debugging DOM Parsing
↑ Back to topWPS_DEBUG_DOM
constant to expose additional information during DOM parsing.
define( 'WPS_DEBUG_DOM', true );This applies when accurate optimization is used to handle the requests of the search engine’s filters (when enabled in the General settings).