_delete_attachment_theme_mod


_delete_attachment_theme_mod ( $id )

Access:
  • private
Parameters:
  • (int) id The attachment ID.
Defined at:
Change Log:
  • 4: .
  • 4: .
  • 6: .

Description

Checks an attachment being deleted to see if it's a header or background image.If true it removes the theme modification which would be pointing at the deleted attachment.

Related Functions

wp_delete_attachment, wp_delete_attachment_files, get_attachment_template, wp_get_attachment_thumb_url, wp_generate_attachment_metadata

Top Google Results

User discussions

wpseek mobile