wp_delete_attachment_files


wp_delete_attachment_files ( $post_id, $meta, $backup_sizes, $file )

Parameters:
  • (int) $post_id Attachment ID.
  • (array) $meta The attachment's meta data.
  • (array) $backup_sizes The meta data for the attachment's backup images.
  • (string) $file Absolute path to the attachment's file.
Returns:
  • (bool) True on success, false on failure.
Defined at:

Description

Deletes all files that belong to the given attachment.

Related Functions

wp_delete_attachment, wp_get_attachment_thumb_file, wp_get_attachment_image, wp_get_attachment_url, wp_get_attachment_id3_keys

Top Google Results

User discussions

wpseek mobile