Purchase Code validation before submitting wordpress theme on Envato.

Hello,
I am trying to integrate a purchase code validation in my new theme but i can not understand how can i get option value from wp_options table as i need to check if wp_options table already have meta_option value based on item_id (ex. get_option( ‘envato_purchase_code_Item_id’ ). Here I need to set this item_id dynamically but unable to get item_id before submitting theme on Envato. Do I need to hardcode this in my code or it will be set dynamically through api?
Any help would be appreciated!

Upload the theme first, after ( if ) approval, change the ID with non-dynamic data.
You shouldn’t be using dynamic data for verification purpose, it’d be causing issues.

To be honest, license verification is not worth thinking about in the first step. First make a theme and publish it on Envato, and you can do the license check later. It’s not something to worry about, believe me.

@vikasshinedezign - As @Avirtum mentioned, you should first get your theme approved by the review team. Once that’s done, you can implement license verification for installing or updating your theme in future updates. For now, focus on getting your theme approved and the features you can offer.

Thanks for all your advice. I’ll follow it and focus on getting my theme approved first, then implement the item ID afterward.

1 Like

If you get approval but good luck!