示例#1
0
 /**
  * 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 Events
  */
 function tribe_delete_event($postId, $force_delete = false)
 {
     $success = Tribe__Events__API::deleteEvent($postId, $force_delete);
     return $success;
 }