I have this contact form
And this is how the front-end looks like
The url of the page is example.com/listing/philly-4-beds-1-5-baths-single-family/#contact
I need to have the subject set as Philly 4 beds 1 5 baths single-family (the title).
Here is my code in functions.php
What should I add inside the function to set the subject with the value of the title?Thank you!