sm:sync::deleteFile
sm:sync::deleteFile
Appears in: wp-stateless.2.3.2, wp-stateless.3.0, wp-stateless.3.0.1, wp-stateless.3.0.2, wp-stateless.3.0.3, wp-stateless.3.0.4, wp-stateless.3.1.0, wp-stateless.3.1.1, wp-stateless.3.2.2, wp-stateless.3.2.4, wp-stateless.3.2.5, wp-stateless.3.3.0, wp-stateless.3.4.0, wp-stateless.3.4.1, wp-stateless.4.0.3, wp-stateless.4.0.4, wp-stateless.4.1.1, wp-stateless.4.1.2
Hook Type: action
See hook in action
Displaying hooks found in version: wp-stateless.4.1.2do_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); } } } /**