wp_stateless_set_file_meta

wp_stateless_set_file_meta

Appears in:
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wp-stateless.4.0.3

do_action('wp_stateless_set_file_meta') is found 3 times:

  • /lib/classes/compatibility/lite-speed-cache.php line 97
     
            update_post_meta($attachment_id, 'sm_cloud', $cloud_meta);
    
            // If WP-Stateless version >= 4.0.0
            do_action('wp_stateless_set_file_meta', $attachment_id, 'fileMd5', $cloud_meta['fileMd5']);
          }
    
          /**
           * Sync the image when Lite Speed plugin pull the optimized image.
           * We need to overwrite the existing image.
           * @param stdClass Object $row_img
    
  • /lib/classes/compatibility/lite-speed-cache.php line 340
     
                $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);
              }
            }
    
            return $cloud_meta;
          }
    
    
  • /lib/classes/compatibility/polylang-pro.php line 156
     
                    $meta = $data['meta'] ?? [];
    
                    foreach ($meta as $key => $value) {
                      do_action('wp_stateless_set_file_meta', $id, $key, $value);
                    }
                  }
                } catch (\Throwable $e) {
                  error_log( $e->getMessage() );
                }
              }
    

See this hook used in plugins: