A WordPress-centric search engine for devs and theme authors



{$action}_overrides ›

Since5.7.0
Deprecatedn/a
apply_filters( "{$action}_overrides", $overrides, $file )
Parameters: (2)
  • (array|false) $overrides An array of override parameters for this file. Boolean false if none are provided. @see _wp_handle_upload().
    Required: Yes
  • (string[]) $file An array of data for the file. Reference to a single element of `$_FILES`.
    Required: Yes
Defined at:
Codex:

Filters the override parameters for a file before it is uploaded to WordPress.

The dynamic portion of the hook name, $action, refers to the post action.

Possible hook names include:

  • wp_handle_sideload_overrides
  • wp_handle_upload_overrides




Source

$overrides = apply_filters( "{$action}_overrides", $overrides, $file );