protected function store( $source, $destination, $width, $height, $crop ) {
		if ( file_exists( $destination ) ) {
			return $destination;
		}

		$editor = wp_get_image_editor( $source );

		if ( is_wp_error( $editor ) ) {
			return '';
		}

		$editor->resize( $width, $height, $crop );
		$editor->save( $destination );

		return $destination;
	}
protected function store( $source, $destination, $width, $height, $crop ) {
		if ( file_exists( $destination ) ) {
			return $destination;
		}

		$editor = wp_get_image_editor( $source );

		if ( is_wp_error( $editor ) ) {
			return '';
		}

		$editor->resize( $width, $height, $crop );
		$editor->save( $destination );

		return $destination;
	}
protected function store ( $ source , $ destination , $ width , $ height , $ crop ) { if ( file_exists ( $ destination ) ) { return $ destination ; } $ editor = wp_get_image_editor ( $ source ) ; if ( is_wp_error ( $ editor ) ) { return '' ; } $ editor -> resize ( $ width , $ height , $ crop ) ; $ editor -> save ( $ destination ) ; return $ destination ; }
Resize and store a copy of an image file.

@param  string  $source
@param  string  $destination
@param  integer $width
@param  integer $height
@param  boolean $crop
@return string
Resize and store a copy of an image file .