sm:sync::queue_is_exists

sm:sync::queue_is_exists

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wp-stateless.4.1.2

apply_filters('sm:sync::queue_is_exists') is found 3 times:

  • /lib/classes/class-sync-non-media.php line 95
            ));
    
            $args = apply_filters('sm:sync::syncArgs', $args, $name, $absolutePath, $forced);
    
            if ( apply_filters('sm:sync::queue_is_exists', $name, self::STATUS_SYNCED) && !$forced) {
              return false;
            }
    
            $file_type = Utility::mimetype_from_extension(pathinfo($absolutePath, PATHINFO_EXTENSION));
            if (empty($this->client)) {
              $this->client = ud_get_stateless_media()->get_client();
    
  • /lib/classes/class-sync-non-media.php line 327
           * @return bool
           */
          public function copy_file($old_file, $new_file, $force = false, $status = self::STATUS_COPIED) {
            try {
              if ( !$force && apply_filters('sm:sync::queue_is_exists', $new_file, $status) ) {
                return false;
              }
    
              $client = $this->get_gs_client();
    
              // Copying file on GCS
    
  • /lib/classes/compatibility/imagify.php line 228
           */
          public function imagify_has_backup($return, $has_backup) {
            if (!$return && $has_backup) {
              $name = apply_filters('wp_stateless_file_name', $has_backup);
              $return = (bool) apply_filters('sm:sync::queue_is_exists', $name);
            }
            return $return;
          }
    
          /**
           * Synchronization after optmize process
    

See this hook used in plugins: