sm:sync::removeFile

sm:sync::removeFile

Appears in:
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wp-stateless.4.1.1

do_action('sm:sync::removeFile') is found 4 times:

  • /lib/classes/class-sync-non-media.php line 203
              }
              return $media;
            } elseif (!$local_file_exists && $args['remove_from_queue']) {
              if (!$this->client->media_exists($name)) {
                do_action('sm:sync::removeFile', $name);
                if ($args['manual_sync']) {
                  throw new UnprocessableException(sprintf(__("Both local and remote files are missing. File: %s ", ud_get_stateless_media()->domain), $name));
                }
              }
            }
          }
    
  • /lib/classes/class-sync-non-media.php line 261
                return false;
              }
              // Removing file for GCS
              $this->client->remove_media($file, "", 0);
              do_action('sm:sync::removeFile', $file);
              return true;
            } catch (\Exception $e) {
              return false;
            }
          }
    
    
  • /lib/classes/class-sync-non-media.php line 290
            if ( !empty($files) ) {
              foreach ($files as $key => $file) {
                if (strpos($file, $dir) !== false) {
                  $this->client->remove_media($file, "", 0);
                  do_action('sm:sync::removeFile', $file);
                }
              }
            }
    
            return true;
          }
    
  • /lib/classes/class-sync-non-media.php line 384

    Warning: Undefined array key 388 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 389 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

            $file = str_replace( ud_get_stateless_media()->get_gs_host(), '', $file);
    
            $file = trim($file, '/');
    
            do_action('sm:sync::removeFile', $file);
          }
        }
      }
    }
    
    
    

See this hook used in plugins: