WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Купить персональные IPV4 и IPV6 прокси
фильтр не описан

(action)_prefilter хук-фильтр . WP 2.9.0

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.

Использование

add_filter( '(action)_prefilter', 'filter_function_name_3369' );
function filter_function_name_3369( $file ){
	// filter...

	return $file;
}
$file(строка[])
An array of data for a single file.

Список изменений

С версии 2.9.0 Введена.
С версии 2.9.0 as 'wp_handle_upload_prefilter'.
С версии 4.0.0 Converted to a dynamic hook with $action.

Где вызывается хук

_wp_handle_upload()
(action)_prefilter
wp-admin/includes/file.php 723
$file = apply_filters( "{$action}_prefilter", $file );

Где используется хук (в ядре WP)

wp-admin/includes/ms-admin-filters.php 11
add_filter( 'wp_handle_upload_prefilter', 'check_upload_size' );
wp-includes/default-filters.php 111
add_filter( 'add_term_metadata', 'wp_check_term_meta_support_prefilter' );
wp-includes/default-filters.php 112
add_filter( 'update_term_metadata', 'wp_check_term_meta_support_prefilter' );
wp-includes/default-filters.php 113
add_filter( 'delete_term_metadata', 'wp_check_term_meta_support_prefilter' );
wp-includes/default-filters.php 114
add_filter( 'get_term_metadata_by_mid', 'wp_check_term_meta_support_prefilter' );
wp-includes/default-filters.php 115
add_filter( 'update_term_metadata_by_mid', 'wp_check_term_meta_support_prefilter' );
wp-includes/default-filters.php 116
add_filter( 'delete_term_metadata_by_mid', 'wp_check_term_meta_support_prefilter' );
wp-includes/default-filters.php 117
add_filter( 'update_term_metadata_cache', 'wp_check_term_meta_support_prefilter' );
wp-includes/default-filters.php 110
add_filter( 'get_term_metadata', 'wp_check_term_meta_support_prefilter' );
wp-includes/ms-default-filters.php 65
add_filter( 'update_blog_metadata_by_mid', 'wp_check_site_meta_support_prefilter' );
wp-includes/ms-default-filters.php 67
add_filter( 'update_blog_metadata_cache', 'wp_check_site_meta_support_prefilter' );
wp-includes/ms-default-filters.php 66
add_filter( 'delete_blog_metadata_by_mid', 'wp_check_site_meta_support_prefilter' );
wp-includes/ms-default-filters.php 60
add_filter( 'get_blog_metadata', 'wp_check_site_meta_support_prefilter' );
wp-includes/ms-default-filters.php 64
add_filter( 'get_blog_metadata_by_mid', 'wp_check_site_meta_support_prefilter' );
wp-includes/ms-default-filters.php 63
add_filter( 'delete_blog_metadata', 'wp_check_site_meta_support_prefilter' );
wp-includes/ms-default-filters.php 62
add_filter( 'update_blog_metadata', 'wp_check_site_meta_support_prefilter' );
wp-includes/ms-default-filters.php 61
add_filter( 'add_blog_metadata', 'wp_check_site_meta_support_prefilter' );
wp-includes/ms-site.php 393
add_filter( 'update_blog_metadata_cache', 'wp_check_site_meta_support_prefilter' );