wp_stateless_get_file_meta_value

wp_stateless_get_file_meta_value

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

  • /lib/classes/compatibility/lite-speed-cache.php line 67
          private function _get_md5_meta($attachment_id) {
            // If WP-Stateless version >= 4.0.0
            if ( function_exists('ud_stateless_db') ) {
              $cloud_meta = [
                'fileMd5' => apply_filters('wp_stateless_get_file_meta_value', [], $attachment_id, 'fileMd5', []), 
              ];
            } else {
              $cloud_meta = get_post_meta($attachment_id, 'sm_cloud', true);
            }
    
            return $cloud_meta;
    
  • /lib/classes/compatibility/lite-speed-cache.php line 337
                } else if ( isset($metadata['child-of']) ) {
                  $post_id = $metadata['child-of'];
                }
    
                $meta = apply_filters('wp_stateless_get_file_meta_value', [], $post_id, 'fileMd5', []);
                $meta[$gs_name] = $file_hash;
    
                do_action('wp_stateless_set_file_meta', $post_id, 'fileMd5', $meta);
              }
            }
    
    

See this hook used in plugins: