wp_stateless_get_file_sizes

wp_stateless_get_file_sizes

Appears in:
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wp-stateless.4.0.3

apply_filters('wp_stateless_get_file_sizes') is found 2 times:

  • /lib/classes/class-db.php line 773
            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: