Checks whether auto-updates are forced for an item.
$typestringrequired
'theme' or 'plugin'.$updatebool|nullrequired
$itemobjectrequired
$item, false otherwise.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 );
}
Filters whether to automatically update core, a plugin, a theme, or a language.
| Version | Description |
|---|---|
| 5.6.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_is_auto_update_forced_for_item