WC Paid Listings: Give a free package to a new user

Last updated on

Please note that all code examples on this site are provided for reference/guidance only and we cannot guarantee that they will always work as expected. Our support policy does not include assistance with modifying or debugging code from any code examples, and they may be changed or removed if we find they no longer work due to changes in our plugins.

A common request is to give a free package to newly signed-up users. This can be done with a small snippet added to a plugin like Code Snippets:

Optionally you may want to only give a free package to employers. If that’s the case, use this instead:

If you notice any issues after adding the code, trying removing the first line with the php tag inside it.