WordPress.org

Support

Support » How-To and Troubleshooting » Adding a “Publish” Link for Admins like the “Edit” Link

Adding a “Publish” Link for Admins like the “Edit” Link

  • I’m wondering if anybody else has figured out a way to add a link to publish a post into a page template, much like we do with the “Edit” link.

    <?php edit_post_link( __('Edit This Post'), ' | ', ''); ?>

    That’s what I’ve got for the “Edit” link, but I’d like to somehow add a secondary “Publish” link so that when authors review their story before they publish it, they don’t have to go back into the dashboard to do so.

    Using publish_post instead of edit_post_link doesn’t seem to do the trick for me.

    Any help would be great.

  • The topic ‘Adding a “Publish” Link for Admins like the “Edit” Link’ is closed to new replies.
Skip to toolbar