0282-filters-wpgraphql-enable-major-autoupdates
title: wpgraphql_enable_major_autoupdates hookType: filter hookGroup: settings plugin: wp-graphql
wpgraphql_enable_major_autoupdates
apply_filters( 'wpgraphql_enable_major_autoupdates', false, $this->new_version, $this->current_version, $this->plugin_data );
Filter whether to allow major autoupdates.
- Type: filter
- Group: Settings and Admin
- Since: 2.0.0
- Source File:
plugins/wp-graphql/src/Admin/Updates/UpdateChecker.php
Parameters
$should_allow(bool): Whether to allow major autoupdates. Defaults to false.$new_version(string): The new WPGraphQL version number.$current_version(string): The current WPGraphQL version number.$plugin_data(object): The plugin data object.
Source
apply_filters( 'wpgraphql_enable_major_autoupdates', false, $this->new_version, $this->current_version, $this->plugin_data );
Related
UpdateChecker::should_allow_major_autoupdates()inplugins/wp-graphql/src/Admin/Updates/UpdateChecker.php:317
这篇文档对你有帮助吗?
谢谢你的反馈!