I need to capture a value displayed on the website to the user, and then store it in a variable. Ideally, I'd like to do this in functions.php.
More specifically, we use dynamic phone number replacement on the sites, and we’d like to know which phone number is displayed to the user when they are submitting a contact form (via Gravity Forms).
I can wrap the phone number in a class or ID, but am struggling to understand how to write a function to pull this value into a variable.
I have submitted my question to Gravity Forms, but they will not assist. Thanks.