public function filter_wp_generate_attachment_metadata( $meta_data, $attachment_id ) {
		if ( ! wp_attachment_is_image( $attachment_id ) ) {
			return $meta_data;
		}

		$meta_data['sizes'] = $this->timber_generate_sizes( $attachment_id );

		return $meta_data;
	}
public function filter_wp_generate_attachment_metadata( $meta_data, $attachment_id ) {
		if ( ! wp_attachment_is_image( $attachment_id ) ) {
			return $meta_data;
		}

		$meta_data['sizes'] = $this->timber_generate_sizes( $attachment_id );

		return $meta_data;
	}
public function filter_wp_generate_attachment_metadata ( $ meta_data , $ attachment_id ) { if ( ! wp_attachment_is_image ( $ attachment_id ) ) { return $ meta_data ; } $ meta_data [ 'sizes' ] = $ this -> timber_generate_sizes ( $ attachment_id ) ; return $ meta_data ; }
Hooks into the filter that generates additional image sizes to generate all additional image
sizes with TimberImageHelper.

This function will run when you upload an image. It will also run if you run Regenerate
Thumbnails, so all additional images sizes registered with Timber will be first deleted and
then regenerated through Timmy.

@param array $meta_data     Meta data for an attachment.
@param int   $attachment_id Attachment ID.

@return array $meta_data
Hooks into the filter that generates additional image sizes to generate all additional image sizes with TimberImageHelper .