woocommerce_rest_prepare_system_status filter-hook . WC 1.0
Filter the system status returned from the REST API.
Usage
add_filter( 'woocommerce_rest_prepare_system_status', 'filter_function_name_6981', 10, 3 ); function filter_function_name_6981( $response, $system_status, $request ){ // filter... return $response; }
- $response(WP_REST_Response)
- The response object.
- $system_status(mixed)
- System status
- $request(WP_REST_Request)
- Request object.
Where the hook is called
woocommerce_rest_prepare_system_status
woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-system-status-v2-controller.php 1286
return apply_filters( 'woocommerce_rest_prepare_system_status', $response, $system_status, $request );