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.

Метод класса: WC_Helper{}

Хуков нет.

Возвращает

array{auto_update: bool, auto_update_manageable: bool}.

Использование

$result = WC_Helper::get_plugin_auto_update_data( $plugin_file ): array;
$plugin_file(строка) (обязательный)
Path to the plugin file relative to the plugins directory.

Список изменений

С версии 11.2.0 Введена.

Код WC_Helper::get_plugin_auto_update_data() WC 11.3.0

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