woocommerce_admin_report_columns
Usage
add_filter( 'woocommerce_admin_report_columns', 'wp_kama_woocommerce_admin_report_columns_filter', 10, 3 ); /** * Function for `woocommerce_admin_report_columns` filter-hook. * * @param $report_columns * @param $context * @param $self::get_db_table_name * * @return */ function wp_kama_woocommerce_admin_report_columns_filter( $report_columns, $context, $self::get_db_table_name ){ // filter... return $report_columns; }
- $report_columns
- -
- $context
- -
- $self::get_db_table_name
- -
Where the hook is called
woocommerce/src/Admin/API/Reports/DataStore.php 198-203
$this->report_columns = apply_filters( 'woocommerce_admin_report_columns', $this->report_columns, $this->context, self::get_db_table_name() );