Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-admin/includes/media.php | apply_filters | 1026 | /** * Filters the list of allowed file extensions when sideloading an image from a URL. * * The default allowed extensions are: * * - `jpg` * - `jpeg` * - `jpe` * - `png` * - `gif` * * @since 5.6.0 * * @param string[] $allowed_extensions Array of allowed file extensions. * @param string $file The URL of the image to download. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
string[] | $allowed_extensions | Array of allowed file extensions. |
string | $file | The URL of the image to download. |