wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_is_auto_update_forced_for_item › WordPress Function

Since5.6.0
已弃用n/a
wp_is_auto_update_forced_for_item ( $type, $update, $item )
参数: (3)
  • (string) $type The type of update being checked: Either 'theme' or 'plugin'.
    Required: Yes
  • (bool|null) $update Whether to update. The value of null is internally used to detect whether nothing has hooked into this filter.
    Required: Yes
  • (object) $item The update offer.
    Required: Yes
返回:
  • (bool) True if auto-updates are forced for `$item`, false otherwise.
定义在:
文档:

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