• Resolved flyfisher842

    (@flyfisher842)


    5/30

    What is the syntax for trashing a post, page etc. from the front end. The issue for me would be how to get the post id into the Regular WP trash link.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @flyfisher842

    WP User Frontend doesn’t manage the post trashing ID itself, it’s the same function as WordPress. And the trashed posts have the same post ID as it was in the active or pending status.

    Thanks

    Thread Starter flyfisher842

    (@flyfisher842)

    So are you saying that this would be syntax mysite.com/wp-admin/post.php?action=trash and let wordpress pick up the post id and the nonce to complete the action.

    There is no way the user from the front end would know the post id

    Hello @flyfisher842

    User can check the post ID by hovering the mouse over the delete button. Something would show like: .../dashboard/?action=del&pid=281&_wpnonce=33d2307dc0 in the browser.

    Ref: http://prntscr.com/nwi1r2

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Link syntax for front end trash a post, page etc.’ is closed to new replies.