Created
April 12, 2021 19:12
-
-
Save chriswagoner/fda52a47d29dd2a4c476013ccf5c752a to your computer and use it in GitHub Desktop.
Get the ID of this post
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
| add_shortcode( 'return_post_id', 'gimme_post_id' ); | |
| function gimme_post_id() { | |
| return get_the_ID(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment