How can I grab a published but editing-in-progress page’s permalink in WordPress?


I’ve tried invoking get_sample_permalink_html, get_preview_post_link, and quite a few others to try to pull out the link shown here. I want to print it to the error log. However, nothing shows. How can I get this sample permalink out? I want to do this on pages where the status is ‘published’ but being edited or looked at.

, , , , AviG 3 years 2020-07-06T15:10:50-05:00 0 Answers 70 views 0

Leave an answer