Is there any way i can use products regular price instead of purchase price in ATUM purchase order line item in Cost column?
Note: i know i can change the Cost manually. this is not an option for me. i was asking for any hook available to change the price programmatically on new line item creation/modification.
I saw a filter to Use the purchase price when adding products to a PO in plugin
add_filter( 'atum/order/add_product/price', array( $this, 'use_purchase_price' ), 10, 4 );
Question is how can i override this filter/action to use the product regular price instead of purchase price in function.php?