You can use get_sample_permalink()
Call get_sample_permalink( $id )
or if you want to pass your own title or slug into it, the full signature is get_sample_permalink( $id, $title = null, $name = null)
You can use get_sample_permalink()
Call get_sample_permalink( $id )
or if you want to pass your own title or slug into it, the full signature is get_sample_permalink( $id, $title = null, $name = null)