Created
May 13, 2019 19:17
-
-
Save mbrughi/527c4a56b8052dd88850678d59230d6e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function cf7_add_post_id(){ | |
global $post; | |
return $post->ID; | |
} | |
add_shortcode('CF7_ADD_POST_ID', 'cf7_add_post_id'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment