wp_stateless_get_file_sizes

wp_stateless_get_file_sizes

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_get_file_sizes') is found 2 times:

  • /lib/classes/class-db.php line 868
            wp_cache_set($cache_key, $meta, $this->cache_group);
    
            // Get file size meta data
            if ( $with_sizes ) {
              $meta['sizes'] = apply_filters('wp_stateless_get_file_sizes', [], $attachment_id);
            }
    
            return $meta;
          }
    
          /**
    
  • /lib/classes/compatibility/polylang-pro.php line 85
              }
            }
    
            foreach ($ids as $id) {
              $sizes = apply_filters( 'wp_stateless_get_file_sizes', [], $id );
    
              if ( !empty($sizes) ) {
                $data['sizes'] = $sizes;
    
                break;
              }
    

See this hook used in plugins: