Automattic\WooCommerce\Admin\API\Reports
DataStore::__construct
Class constructor.
Method of the class: DataStore{}
Hooks from the method
Returns
null. Nothing (null).
Usage
$DataStore = new DataStore(); $DataStore->__construct();
DataStore::__construct() DataStore:: construct code WC 10.8.1
public function __construct() {
self::set_db_table_name();
$this->assign_report_columns();
if ( $this->report_columns ) {
$this->report_columns = apply_filters(
'woocommerce_admin_report_columns',
$this->report_columns,
$this->context,
self::get_db_table_name()
);
}
// Utilize enveloped responses to include debugging info.
// See https://querymonitor.com/blog/2021/05/debugging-wordpress-rest-api-requests/
if ( isset( $_GET['_envelope'] ) ) {
$this->debug_cache = true;
add_filter( 'rest_envelope_response', array( $this, 'add_debug_cache_to_envelope' ), 999, 2 );
}
}