woocommerce_api_xml_data

woocommerce_api_xml_data

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

See hook in core

Displaying hooks found in version: woocommerce.8.9.3

apply_filters('woocommerce_api_xml_data') is found 1 times:

  • /includes/legacy/api/v1/class-wc-api-xml-handler.php line 108
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
            $data = array( 'product_review' => $data );
            break;
     
        default:
            $data = apply_filters( 'woocommerce_api_xml_data', $data, $root_element );
            break;
    }
     
    // generate xml starting with the root element and recursively generating child elements
    $this->array_to_xml( $root_element, $data );