Core Function
View Source on Trac ↗ wp_is_auto_update_forced_for_item()
wp_is_auto_update_forced_for_item( mixed $type, mixed $update, mixed $item ) Checks whether auto-updates are forced for an item.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $type string | The type of update being checked: Either 'theme' or 'plugin'. Required |
| mixed | (bool | null) $update Whether to update. The value of null is internally used to detect whether nothing has hooked into this filter. Required |
| $item object | The update offer. Required |
Return Value
(bool)
True if auto-updates are forced for `$item`, false otherwise.
Function Information
Since Version
5.6.0
Source File
wp-admin/includes/update.php
Advertisement