Skip to content

Testing

Mik edited this page May 17, 2022 · 9 revisions

Filters for testing

Filter Description
woocommerce_gla_enable_debug_logging Enable debug logging (default true)
woocommerce_gla_enable_reports Enable the report tab (default true)
woocommerce_gla_enable_connection_test Show the Connection Test page
woocommerce_gla_ready_for_syncing Allow syncing using a different URL then used for onboarding

Example code snippet to enable one of these features:

add_filter( 'woocommerce_gla_connection_test', '__return_true' );

Mocking