woocommerce_log_legacy_rest_api_usages
woocommerce_log_legacy_rest_api_usages
Appears in: woocommerce.8.5.1
Hook Type: filter
Displaying hooks found in version: woocommerce.8.5.1apply_filters('woocommerce_log_legacy_rest_api_usages') is found 1 times:
- /includes/legacy/class-wc-legacy-api.php line 116
* @param bool $do_logging True to enable the logging of all the Legacy REST API usages (default), false to disable. * * @since 8.5.0 */ if ( apply_filters( 'woocommerce_log_legacy_rest_api_usages', true ) ) { wc_get_logger()->info( 'Version: ' . WC_API_REQUEST_VERSION . ", Route: $route, User agent: $user_agent", array( 'source' => 'legacy_rest_api_usages' ) ); } } /** * Add new endpoints.