de

wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren


  |     Alle durchsuchen


wp_delete_post [ WordPress Function ]

wp_delete_post ( $postid = 0, $force_delete = false )
Parameter:
  • int $postid Post ID.
  • bool $force_delete Whether to bypass trash and force deletion. Defaults to false.
Nutzt:
Gibt zurück:
  • mixed False on failure
Definiert in:



Trashes or deletes a post or page.

When the post and page is permanently deleted, everything that is tied to it is deleted also. This includes comments, post meta fields, and terms associated with the post.

The post or page is moved to trash instead of permanently deleted unless trash is disabled, item is already in the trash, or $force_delete is true.

Beispiele [ wp-snippets.com ]

Top Google Suchergebnisse

Mehr ...

0 Nutzerkommentare

Noch keine. Sei der Erste!

Neu hinzufügen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics