Automattic\WooCommerce\Admin\API\Reports

DataStore::__construct()publicWC 1.0

Class constructor.

Метод класса: DataStore{}

Хуки из метода

Возвращает

null. Ничего (null).

Использование

$DataStore = new DataStore();
$DataStore->__construct();

Код DataStore::__construct() WC 9.8.5

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 );
	}
}