wpseek.com
A WordPress-centric search engine for devs and theme authors



image_sideload_extensions › WordPress Filter Hooks

Since5.8.0
Deprecatedn/a
apply_filters( 'image_sideload_extensions', $allowed_extensions, $file )
Parameters: (2)
  • () allowed_extensions Array of allowed file extensions.
    Required: Yes
  • () file The URL of the image to download.
    Required: Yes
Defined at:
Codex:

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`




Source

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