how to get current post id in a plugin when editing a page
-
Hello,
I am trying to create a static xml for every page in blog. I want to make a plugin that will add this functionality to “publish_post” and “edit_post” hooks so every time I edit some page the static xml will be refreshed. The problem is that I don’t know how to get the current page title (About, etc) that I’m editing. Is there a way to get the current post id like get_post($this);?
thank you!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘how to get current post id in a plugin when editing a page’ is closed to new replies.