Uma área de pesquisa sobre o WordPress para devs e autores do tema



{$action}_prefilter ›

Desde4.0.0
Obsoleton/a
apply_filters( "{$action}_prefilter", $file )
Parâmetros:
  • (string[]) $file An array of data for a single file.
    Required: Yes
Definido em:
Codex:

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

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





Fonte

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