wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_is_auto_update_forced_for_item › WordPress Function

Da5.6.0
Deprecaton/a
wp_is_auto_update_forced_for_item ( $type, $update, $item )
Parametri: (3)
  • (string) $type The type of update being checked: Either 'theme' or 'plugin'.
    Richiesto:
  • (bool|null) $update Whether to update. The value of null is internally used to detect whether nothing has hooked into this filter.
    Richiesto:
  • (object) $item The update offer.
    Richiesto:
Ritorna:
  • (bool) True if auto-updates are forced for `$item`, false otherwise.
Definito a:
Codex:

Checks whether auto-updates are forced for an item.



Sorgenti

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