query.trash_post
/
Database /
query.trash_post
By Amit Singh. Posted on
Title |
: |
query.trash_post |
Purpose |
: |
Move a post or page to the Trash |
Syntax |
: |
[query.trash_post post_id=”575512″ /] |
Input Parameters |
: |
post_id: (int) (Optional) Post ID. Default is ID of the global $post if EMPTY_TRASH_DAYS equals true. |
Return Value |
: |
It does not return anything |
Example 1 |
: |
Code |
: |
[query.trash_post post_id=”575512″ /] |
Output |
: |
Move a post or page to the Trash |
Description |
: |
If Trash is disabled, the post or page is permanently deleted. |
|
Last Modified By Swapnil k.