imagify_backup_overwrite_backup

imagify_backup_overwrite_backup

Hook Type: filter

See hook in core

Displaying hooks found in version: wp-stateless.4.1.2

apply_filters('imagify_backup_overwrite_backup') is found 1 times:

  • /lib/classes/compatibility/imagify.php line 196
     
              $file_path = get_attached_file($id);
              $backup_path = get_imagify_attachment_backup_path($file_path);
              if (file_exists($backup_path)) {
                $overwrite = apply_filters('imagify_backup_overwrite_backup', false, $file_path, $backup_path);
                // wp_stateless_file_name filter will remove the basedir from the path and prepend with root dir.
                $name = apply_filters('wp_stateless_file_name', $backup_path);
                do_action('sm:sync::syncFile', $name, $backup_path, $overwrite);
              }
            }
          }