post_type) {
return;
}
$coupon_id = $post->ID;
$is_auto_apply = get_post_meta($coupon_id, '_pi_aww_is_wallet_coupon', true);
?>
'_pi_aww_is_wallet_coupon',
'label' => __('Credit to Wallet?', 'your-textdomain'),
'description' => __('Credit the coupon discount amount into wallet credit', 'your-textdomain'),
]);
}
public function save_wallet_coupon_checkbox($post_id) {
$is_wallet = isset($_POST['_pi_aww_is_wallet_coupon']) ? 'yes' : 'no';
update_post_meta($post_id, '_pi_aww_is_wallet_coupon', $is_wallet);
}
}