Add meta data
-
Hi there,
I am looking for a php snippet to add the following to the Gift Card code I generated with the YITH gift card plugin. The code below does not work. Any ideas how to correct?
<?php add_action( 'save_post_shop_coupon', 'my_child_after_coupon_save', 10, 3 ); function my_child_after_coupon_save( $post_id, $post, $update ) { update_post_meta( $post_id, 'is_voucher', 'yes' ); }
Best
Muleque
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Add meta data’ is closed to new replies.