I’m trying to create a plugin that gives you a push notifications button, through the WordPress editor and I can’t find a way to get the permalink of a draft post before its status is set to published.
The predicted permalink already show up in the editor, I just can’t find how I can retrieve the same value in my code. get_post_permalink() and get_permalink() don’t work until the post is published.
Thx in advance!
Read more here:: How can I get the permalink of a post before it is published?