acf/upload_prefilter/name={$field[_name]}
acf/upload_prefilter/name={$field[_name]}
Appears in: advanced-custom-fields.6.0.2
Hook Type: filter
Displaying hooks found in version: advanced-custom-fields.6.0.2apply_filters('acf/upload_prefilter/name={$field[_name]}') is found 1 times:
- /includes/media.php line 111107108109110111112113114115116117
* @param
array
$file
An
array
of data
for
a single file.
* @param
array
$field
The field
array
.
*/
$errors
= apply_filters(
"acf/upload_prefilter/type={$field['type']}"
,
$errors
,
$file
,
$field
);
$errors
= apply_filters(
"acf/upload_prefilter/name={$field['_name']}"
,
$errors
,
$file
,
$field
);
$errors
= apply_filters(
"acf/upload_prefilter/key={$field['key']}"
,
$errors
,
$file
,
$field
);
$errors
= apply_filters(
'acf/upload_prefilter'
,
$errors
,
$file
,
$field
);
// Append errors.
if
( !
empty
(
$errors
) ) {
$file
[
'error'
] = implode(
"\n"
,
$errors
);