classes/Tools/Storage/StorageTool.php
public function handleImageOptimizer($postId) {
	    $this->processingOptimized = true;

	    Logger::info('Handle Image Optimizer: '.$postId);


        add_filter('ilab_ignore_existing_s3_data', function($shouldIgnore, $attachmentId) use ($postId) {
            if ($postId == $attachmentId) {
                return true;
            }

            return $shouldIgnore;
        }, 10000, 2);

        $this->processImport(1,  $postId, null);
    }
public function handleImageOptimizer($postId) {
	    $this->processingOptimized = true;

	    Logger::info('Handle Image Optimizer: '.$postId);


        add_filter('ilab_ignore_existing_s3_data', function($shouldIgnore, $attachmentId) use ($postId) {
            if ($postId == $attachmentId) {
                return true;
            }

            return $shouldIgnore;
        }, 10000, 2);

        $this->processImport(1,  $postId, null);
    }
public function handleImageOptimizer ( $ postId ) { $ this -> processingOptimized = true ; Logger :: info ( 'Handle Image Optimizer: ' . $ postId ) ; add_filter ( 'ilab_ignore_existing_s3_data' , function ( $ shouldIgnore , $ attachmentId ) use ( $ postId ) { if ( $ postId == $ attachmentId ) { return true ; } return $ shouldIgnore ; } , 10000 , 2 ) ; $ this -> processImport ( 1 , $ postId , null ) ; }
region Image Optimizer
region Image Optimizer