sm:sync::deleteFile

sm:sync::deleteFile

Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wp-stateless.4.1.2

do_action('sm:sync::deleteFile') is found 3 times:

  • /lib/classes/compatibility/shortpixel.php line 162
     
            foreach ($paths as $key => $path) {
              // Removing backup
              $name = apply_filters('wp_stateless_file_name', SHORTPIXEL_BACKUP . '/' . $fullSubDir . basename($path));
              do_action('sm:sync::deleteFile', $name);
    
              // Removing WebP
              $backup_images = \WPShortPixelSettings::getOpt('wp-short-create-webp');
              if ($backup_images) {
                $name = str_replace($sp__uploads['basedir'], '', $path);
                $name = apply_filters('wp_stateless_file_name', $name . '.webp');
    
  • /lib/classes/compatibility/shortpixel.php line 169
              $backup_images = \WPShortPixelSettings::getOpt('wp-short-create-webp');
              if ($backup_images) {
                $name = str_replace($sp__uploads['basedir'], '', $path);
                $name = apply_filters('wp_stateless_file_name', $name . '.webp');
                do_action('sm:sync::deleteFile', $name);
              }
            }
    
            if (ud_get_stateless_media()->get('sm.mode') == 'ephemeral') {
              return true;
            }
    
  • /lib/classes/compatibility/wp-smush.php line 152
              foreach ($backup_paths as $key => $data) {
                $gs_name = $gs_dir . '/' . basename($data['file']);
                // Path of backup image
                $backup_path = $base_dir . '/' . basename($data['file']);
                do_action('sm:sync::deleteFile', apply_filters('wp_stateless_file_name', $gs_name), $backup_path);
                delete_transient('sm-wp-smush-backup-exists-' . $attachment_id);
              }
            }
          }
    
          /**
    

See this hook used in plugins: