Customisation hooks don’t see to trigger
-
I’m having trouble getting the hooks described in the help to work.
With this code:
error_log("custom hooks"); add_filter('wf_pklist_alter_package_item_quantiy', 'wt_pklist_package_item_quantiy', 10, 5); function wt_pklist_package_item_quantiy($item_quantity, $template_type, $_product, $item, $order) { error_log("custom quantity"); return "Test quantity"; } add_filter('wf_pklist_alter_product_name', 'wt_pklist_new_prodct_name', 10, 5); function wt_pklist_new_prodct_name($order_item_name, $template_type, $_product, $order_item, $order) { error_log("custom name"); return "Test product name"; }
…I am seeing the first error log “custom hooks” but the others never get triggered and the PDFs do not change.
What am I missing here?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Customisation hooks don’t see to trigger’ is closed to new replies.