woocommerce_export_{$this->export_type}_column_{$column_name}

woocommerce_export_{$this->export_type}_column_{$column_name}

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_export_{$this->export_type}_column_{$column_name}') is found 1 times:

  • /src/Admin/ReportCSVExporter.php line 298
    			$value = isset( $item[ $column_name ] ) ? $item[ $column_name ] : null;
    
    			if ( has_filter( "woocommerce_export_{$this->export_type}_column_{$column_name}" ) ) {
    				// Filter for 3rd parties.
    				$value = apply_filters( "woocommerce_export_{$this->export_type}_column_{$column_name}", '', $item );
    
    			} elseif ( is_callable( array( $this, "get_column_value_{$column_name}" ) ) ) {
    				// Handle special columns which don't map 1:1 to item data.
    				$value = $this->{"get_column_value_{$column_name}"}( $item, $this->export_type );
    
    			} elseif ( ! is_scalar( $value ) ) {