Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren

wp_is_auto_update_forced_for_item ›

wp_is_auto_update_forced_for_item ( $type, $update, $item )
Parameter: (3)
  • (string) $type The type of update being checked: 'theme' or 'plugin'.
    Erforderlich: Ja
  • (bool|null) $update Whether to update. The value of null is internally used to detect whether nothing has hooked into this filter.
    Erforderlich: Ja
  • (object) $item The update offer.
    Erforderlich: Ja
Gibt zurück:
  • (bool) True if auto-updates are forced for `$item`, false otherwise.
Definiert in:

Checks whether auto-updates are forced for an item.


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 );