wpseek.com
WordPress开发者和主题制作者的搜索引擎



image_sideload_extensions › WordPress过滤钩子

Since5.8.0
已弃用n/a
› apply_filters( 'image_sideload_extensions', $allowed_extensions, $file )
参数: (2)
  • () allowed_extensions Array of allowed file extensions.
    Required: Yes
  • () file The URL of the image to download.
    Required: Yes
定义在:
文档:

Filters the list of allowed file extensions when sideloading an image from a URL.

The default allowed extensions are: - `jpg` - `jpeg` - `jpe` - `png` - `gif` - `webp`




源码

$allowed_extensions = apply_filters( 'image_sideload_extensions', $allowed_extensions, $file );