WC_Helper::get_plugin_auto_update_data │ public static │ WC 11.2.0

Auto-update state of an installed plugin, following the same rules as WordPress core's Plugins screen so the two screens never describe the same plugin differently.

Method of the class: WC_Helper{}

No Hooks.

Returns

array{auto_update: bool, auto_update_manageable: bool}.

Usage

$result = WC_Helper::get_plugin_auto_update_data( $plugin_file ): array;
$plugin_file(string) (required)
Path to the plugin file relative to the plugins directory.

Changelog

Since 11.2.0 Introduced.

WC_Helper::get_plugin_auto_update_data() code WC 11.2.2

public static function get_plugin_auto_update_data( string $plugin_file ): array {
	return self::get_auto_update_data( 'plugin', $plugin_file );
}