WordPress at Your Fingertips
function is not described

wp_is_auto_update_forced_for_item() WP 5.6.0

Checks whether auto-updates are forced for an item.

Hooks from the function

Return

true|false. True if auto-updates are forced for $item, false otherwise.

Usage

wp_is_auto_update_forced_for_item( $type, $update, $item );
$type(string) (required)
The type of update being checked: 'theme' or 'plugin'.
$update(true|false|null) (required)
Whether to update. The value of null is internally used to detect whether nothing has hooked into this filter.
$item(object) (required)
The update offer.

Changelog

Since 5.6.0 Introduced.

Code of wp_is_auto_update_forced_for_item() WP 5.8.2

function wp_is_auto_update_forced_for_item( $type, $update, $item ) {
	/** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */
	return apply_filters( "auto_update_{$type}", $update, $item );
}