wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



image_sideload_extensions › WordPress Filter Hooks

Seit5.8.0
Veraltetn/v
apply_filters( 'image_sideload_extensions', $allowed_extensions, $file )
Parameter: (2)
  • () allowed_extensions Array of allowed file extensions.
    Erforderlich: Ja
  • () file The URL of the image to download.
    Erforderlich: Ja
Definiert in:
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`




Quellcode

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