wp_is_auto_update_forced_for_item
wp_is_auto_update_forced_for_item ( $type, $update, $item )
Parameters:- (string) type The type of update being checked: 'theme' or 'plugin'.
- (bool|null) update Whether to update. The value of null is internally used to detect whether nothing has hooked into this filter.
- (object) item The update offer.
Returns:- (bool) True if auto-updates are forced for `$item`, false otherwise.
Defined at: - Introduced in WordPress: 5.6.0
- Deprecated in WordPress: —
Description
Checks whether auto-updates are forced for an item.