DIY sync

WooCommerce MRP-K/S Exporter


List of action and filter hooks supported by the WooCommerce MRP-K/S Exporter plugin. You can use this hooks in your e-shop templates by adding them to the functions.php file or by using the plugin for snippet hooks.

tlw_wc_mrp_ks_exporter_invoice

  • filter hook for modifying the ouput fields with invoice data
/**
 * filter hook for invoice XML to MRP-K/S
 * @param array $invoice invoice request output to MRP-K/S
 * @param obj $order eshop order data
 * @return array final invoice XML request to MRP-K/S
 */
add_filter('tlw_wc_mrp_ks_exporter_invoice', function($invoice, $order) {
     return $invoice;
}, 10, 2);

tlw_wc_mrp_ks_exporter_invoice_item_product

  • filter hook for modifying the output fields with product item data in generated invoice
/**
 * filter hook for invoice product item in XML to MRP-K/S
 * @param array $invoice_item product item request output to MRP-K/S
 * @param obj $item eshop order item data
 * @return array final invoice product item XML request to MRP-K/S
 */
add_filter('tlw_wc_mrp_ks_exporter_invoice_item_product', function($invoice_item, $item) {
     return $invoice_item;
}, 10, 2);

tlw_wc_mrp_ks_exporter_invoice_item_fee

  • filter hook for modifying the output fields with fee item data in generated invoice
/**
 * filter hook for invoice fee item in XML to MRP-K/S
 * @param array $invoice_item fee item request output to MRP-K/S
 * @param obj $item eshop order item data
 * @return array final fee item XML request to MRP-K/S
 */
add_filter('tlw_wc_mrp_ks_exporter_invoice_item_fee', function($invoice_item, $item) {
     return $invoice_item;
}, 10, 2);

tlw_wc_mrp_ks_exporter_invoice_item_shipping

  • filter hook for modifying the output fields with shipping item data in generated invoice
/**
 * filter hook for invoice shipping item in XML to MRP-K/S
 * @param array $invoice_item shipping item request output to MRP-K/S
 * @param obj $order eshop order data
 * @return array final shipping item XML request to MRP-K/S
 */
add_filter('tlw_wc_mrp_ks_exporter_invoice_item_shipping', function($invoice_item, $order) {
     return $invoice_item;
}, 10, 2);