wp_stateless_skip_remove_media

wp_stateless_skip_remove_media

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wp-stateless.4.1.2

apply_filters('wp_stateless_skip_remove_media') is found 1 times:

  • /lib/classes/class-utility.php line 234
               * @param string            $attachment_id  Attachment ID.
               * @param bool              $force          (optional) Whether to force the sync even the file already exist in GCS.
               * @param bool              $args           (optional) Whether to only sync the full size image.
               */
              $skip_remove_media = apply_filters('wp_stateless_skip_remove_media', false, $metadata, $attachment_id, $force, $args);
    
              // Make non-images uploadable.
              // empty $metadata['file'] can cause problem, so we need to generate it.
              if (empty($metadata['file']) && $attachment_id) {
                $mime_type = get_post_mime_type($attachment_id);
                $file = str_replace(wp_normalize_path(trailingslashit($upload_dir['basedir'])), '', $fullsizepath);
    

See this hook used in plugins: