WordPress.org

Ready to get started?Download WordPress

Forums

Adding a "Publish" Link for Admins like the "Edit" Link (1 post)

  1. nickgassmann
    Member
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic