Add Custom Macro
-
hi, I tried to insert the quantity of stock of the product into the customized pads, but I couldn’t.
I did some tests using the fortnite sniper on github but this didn’t bring me to the conclusion.$stock = get_post_meta( $post->ID, '_stock', true ); add_filter( "puiw_get_default_dynamic_params", function ($stock, $order){ $stock["stock-quantity"] = '$stock()'; return $stock; }, 10, 2);
Please help me, my knowledge is the number of products
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Add Custom Macro’ is closed to new replies.