WC_Admin_List_Table_Products::__constructpublicWC 1.0

Constructor.

Method of the class: WC_Admin_List_Table_Products{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

WC_Admin_List_Table_Products::__construct() code WC 9.9.5

public function __construct() {
	parent::__construct();
	add_filter( 'disable_months_dropdown', '__return_true' );
	add_filter( 'query_vars', array( $this, 'add_custom_query_var' ) );
	add_filter( 'views_edit-product', array( $this, 'product_views' ) );
	add_filter( 'get_search_query', array( $this, 'search_label' ) );
	add_filter( 'posts_clauses', array( $this, 'posts_clauses' ), 10, 2 );
	add_action( 'manage_product_posts_custom_column', array( $this, 'add_sample_product_badge' ), 9, 2 );

	$cogs_controller              = wc_get_container()->get( CostOfGoodsSoldController::class );
	$this->cogs_is_enabled        = $cogs_controller->feature_is_enabled();
	$this->use_cogs_lookup_column = $this->cogs_is_enabled && $cogs_controller->product_meta_lookup_table_cogs_value_columns_exist();
}