So, I'm building something and need to use wordpress as an endpoint.
I’ve a post url like http://example.com/sample-post. Now I’ve added a rewrite endpoint “edit”. So the url becomes http://example.com/sample-post/edit. Now whats the right way to print the url? Should it be like:
<?php echo get_permalink() . '/edit'; ?>
or is there any prefered way?