sm:item:on_fly:before_add

sm:item:on_fly:before_add

Hook Type: filter

See hook in core

Displaying hooks found in version: wp-stateless.3.4.1

apply_filters('sm:item:on_fly:before_add') is found 2 times:

  • /lib/classes/class-dynamic-image-support.php line 75
                'file-hash' => md5($file)
              );
            }
    
            $client->add_media(apply_filters('sm:item:on_fly:before_add', array_filter(array(
              'name' => $file_path,
              'absolutePath' => wp_normalize_path($file),
              'cacheControl' => apply_filters('sm:item:cacheControl', 'public, max-age=36000, must-revalidate', $_metadata),
              'contentDisposition' => null,
              'mimeType' => $mimeType['type'],
              'metadata' => $_metadata
    
  • /lib/classes/compatibility/woo-extra-product-options.php line 67
                'file-hash' => md5($file)
              );
            }
    
            $media = $client->add_media(apply_filters('sm:item:on_fly:before_add', array(
              'use_root' => false,
              'name' => $file_path,
              'absolutePath' => wp_normalize_path($file),
              'cacheControl' => apply_filters('sm:item:cacheControl', 'public, max-age=36000, must-revalidate', $_metadata),
              'contentDisposition' => null,
              'mimeType' => $type,