Forked from sinebeef/cf7-get-page-url-of-sender.php
Created
November 6, 2022 10:25
-
-
Save Jimmi08/6faaeaa219fef43bd1d34f4b978fba22 to your computer and use it in GitHub Desktop.
Contact Form 7 GET slug/url hidden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//https://wordpress.stackexchange.com/questions/291855/how-to-get-current-url-in-contact-form-7 | |
//You can use cf7 hidden field shortcodes + get parameters: https://contactform7.com/hidden-field/ https://contactform7.com/getting-default-values-from-the-context/ | |
//In the mail form I use such shortcodes to get these slugs | |
[hidden utm_source default:get] | |
[hidden utm_medium default:get] | |
[hidden utm_campaign default:get] | |
[hidden utm_content default:get] | |
[hidden gclid default:get] | |
//It also works with their flamingo plugin. And for mail template [_url] works very well. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment