WordPress at Your Fingertips
filter is not described

auto_update_(type) filter-hook . WP 3.7.0

Filters whether to automatically update core, a plugin, a theme, or a language.

The dynamic portion of the hook name, $type, refers to the type of update being checked. Potential hook names include:

  • auto_update_core
  • auto_update_plugin
  • auto_update_theme
  • auto_update_translation

Generally speaking, plugins, themes, and major core versions are not updated by default, while translations and minor and development versions for core are updated by default.

See the allow_dev_auto_core_updates, allow_minor_auto_core_updates, and allow_major_auto_core_updates filters for a more straightforward way to adjust core updates.


add_filter( 'auto_update_(type)', 'filter_function_name_2464', 10, 2 );
function filter_function_name_2464( $update, $item ){
	// filter...

	return $update;
Whether to update. The value of null is internally used to detect whether nothing has hooked into this filter.
The update offer.


Since 3.7.0 Introduced.
Since 5.5.0 The $update parameter accepts the value of null.

Where the hook is called

wp-admin/includes/class-wp-automatic-updater.php 207
$update = apply_filters( "auto_update_{$type}", $update, $item );
wp-admin/includes/update.php 1063
return apply_filters( "auto_update_{$type}", $update, $item );

Where in WP core the hook is used WordPress

Usage not found.