_delete_attachment_theme_mod


_delete_attachment_theme_mod ( $id )

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

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, get_attachment_template, wp_get_attachment_thumb_url, wp_get_attachment_thumb_file, wp_generate_attachment_metadata

Top Google Results

User discussions

wpseek mobile