Description
Filter whether the featured image of a video post deleted permanently by the Delete videos tool is deleted too. By default the image is deleted only when no other post uses it; images uploaded by users are never deleted. Available since Video Hub 2.3.3.
Parameters
- $delete
- (bool)(required) Whether the image is deleted; false when another post uses it.
- $attachment_id
- (int)(required) Attachment ID.
Examples
Keep the images, delete only the posts.
add_filter( 'cbc_videos_delete_image', '__return_false' );