wp_is_auto_update_forced_for_item()
Checks whether auto-updates are forced for an item.
Hooks from the function
Returns
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: Either
'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. |
wp_is_auto_update_forced_for_item() wp is auto update forced for item code WP 7.0
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 );
}