I am having an issue with my custom shortcode. Right now I have a custom shortcode name as [inquiry] which pop up the form and send the data I added the shortcode in the 4 products which added in page content as grid format what I want to do if any user clicks on inquiry button (which come from custom shortcode). I want to also name of the product in the mail.
The name of the product in tag and form is outside of that.
Is there any trick I can do that name of the product can store as PHP variable or I need to add parameter WordPress shortcode?