wp_trash_post( int $post_id )

Move a post or page to the Trash


12 related functions found for: wp_trash_post

Top ↑

Related terms found for this post

TaxonomyTerms
wp-parser-related-wordspost, post-php, post-typ, post-type, statu, status, trash, untrash, wp-includes, wp-trash
wp-parser-packagePost, WordPress
wp-parser-source-filewp-includes/post.php

Top ↑

Terms Used Terms Used

Terms used in the related posts query

  • post
  • Post
  • post-php
  • post-typ
  • post-type
  • statu
  • status
  • trash
  • untrash
  • wp-includes
  • wp-includes/post.php
  • wp-trash

Top ↑

Description Description

If trash is disabled, the post or page is permanently deleted.


Top ↑

Parameters Parameters

$post_id

(int) (Optional) Post ID. Default is ID of the global $post if EMPTY_TRASH_DAYS equals true.


Top ↑

Return Return

(false|array|WP_Post|null) Post data array, otherwise false.


Top ↑

Source Source

File: wp-includes/post.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.9.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.