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);
Cookie settings
WooConn.sk logo

This website uses cookies so that we can provide you with the best possible experience with the use of our website. We store the information in cookies stored in your browser and thanks to them we know what interests you the most and thanks to that we can create such content that you may be interested in.

Necessary cookies

these cookies are used to ensure the operation of this website

Statistical cookies

these cookies are used to anonymously obtain information about traffic to this website