wp_is_auto_update_forced_for_item() – Checks whether auto-updates are forced for an item.

You appear to be a bot. Output may be restricted

Description

Checks whether auto-updates are forced for an item.

Usage

$bool = wp_is_auto_update_forced_for_item( $type, $update, $item );

Parameters

$type
( string ) required – The type of update being checked: 'theme' or 'plugin'.
$update
( bool|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.

Returns

bool True if auto-updates are forced for `$item`, false otherwise.

Source

File name: wordpress/wp-admin/includes/update.php
Lines:

1 to 4 of 4
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 );
}
 

 View on GitHub View on Trac