示例#1
0
文件: event.php 项目: donwea/nhap.org
 /**
  * Delete an Event
  *
  * @param int $postId ID of the event to be deleted.
  * @param bool $force_delete Whether to bypass trash and force deletion. Defaults to false.
  * @return bool false if delete failed.
  * @link http://codex.wordpress.org/Function_Reference/wp_delete_post
  * @see wp_delete_post()
  * @category Event Functions
  * @since 2.0.1
  */
 function tribe_delete_event($postId, $force_delete = false)
 {
     $success = TribeEventsAPI::deleteEvent($postId, $args);
     return $success;
 }