sm::pre::sync::nonMediaFiles

sm::pre::sync::nonMediaFiles

Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wp-stateless.4.1.2

do_action('sm::pre::sync::nonMediaFiles') is found 1 times:

  • /lib/classes/class-sync-non-media.php line 111
     
            $file_copied_from_gcs = false;
            $local_file_exists = file_exists($absolutePath);
    
            do_action('sm::pre::sync::nonMediaFiles', $name, $absolutePath); // , $media
    
            if (!$local_file_exists && ($args['download'] || ud_get_stateless_media()->get('sm.mode') !== 'ephemeral' || ud_get_stateless_media()->get('sm.mode') !== 'stateless')) {
              // Try get it and save
              $result_code = $this->client->get_media($name, true, $absolutePath);
    
              if ($result_code == 200) {
    

See this hook used in plugins: