Created
May 28, 2019 07:36
-
-
Save nuriye/8dfa912375034778bea128eed6ac8bc4 to your computer and use it in GitHub Desktop.
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
add_shortcode('wps_event_link', 'wps_event_link'); | |
function wps_event_link() { | |
$post_id = '{{ post_data:ID }}'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just a heads-up for anyone else who stumbles across this - all this will do is assign
$post_id
as a rendered string value - essentially acting like a template tag. In PHP it has no value beyond the string{{ post_data:ID }}
. So if you did: