How to Add a custom field on the gift card product edit page?

You can use the following code in functions.php for adding custom fields on the product edit page.


add_action('wps_wgm_giftcard_product_type_field', 'wps_wgm_create_custom_field');

function wps_wgm_create_custom_field($product_id){

               ‘id’ => ‘wps_custom_price’,
               ‘value’ => ‘$custom_price’,
               ‘label’ => __( ‘Custom Price’, ‘your-theme’ ),


Was this Helpful ?


Ready to transform how you market your business

Let's get connected for a free consultation