woocommerce_rest_reports_column_types

woocommerce_rest_reports_column_types

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_rest_reports_column_types') is found 1 times:

  • /src/Admin/API/Reports/DataStore.php line 748
    	 * @return array|WP_Error
    	 */
    	protected function cast_numbers( $array ) {
    		$retyped_array = array();
    		$column_types  = apply_filters( 'woocommerce_rest_reports_column_types', $this->column_types, $array );
    		foreach ( $array as $column_name => $value ) {
    			if ( is_array( $value ) ) {
    				$value = $this->cast_numbers( $value );
    			}
    
    			if ( isset( $column_types[ $column_name ] ) ) {