Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
192 B
3
Indexable
Never
<?php
add_action( 'nrr_coupon_created', function ( WC_Coupon $coupon ) {

    $coupon->update_meta_data( 'admin_coupons_enabled_for_vendor', 'yes' );
    $coupon->save_meta_data();

} );