Created
May 15, 2019 09:22
-
-
Save jom/5db4ab9a788eb13d5358bbd131f0b3ff to your computer and use it in GitHub Desktop.
Gift Free Job Package
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'user_register', function( $user_id ) { | |
if ( ! function_exists( 'wc_paid_listings_give_user_package' ) ) { | |
return; | |
} | |
$product_id = 0; // Update this to be the ID for the new product you've created (shown on the product listings page) | |
wc_paid_listings_give_user_package( $user_id, $product_id ); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment