woocommerce_rest_prepare_report_products

woocommerce_rest_prepare_report_products

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_rest_prepare_report_products') is found 1 times:

  • /src/Admin/API/Reports/Products/Controller.php line 79
    		 * @param WP_REST_Request  $request  Request used to generate the response.
    		 *
    		 * @since 6.5.0
    		 */
    		$filtered_response = apply_filters( 'woocommerce_rest_prepare_report_products', $response, $report, $request );
    		if ( isset( $filtered_response->data['extended_info']['name'] ) ) {
    			$filtered_response->data['extended_info']['name'] = wp_strip_all_tags( $filtered_response->data['extended_info']['name'] );
    		}
    		return $filtered_response;
    	}