WC_Helper::get_theme_auto_update_data │ public static │ WC 11.2.0

Auto-update state of an installed theme, following the same rules as WordPress core's Themes screen.

Method of the class: WC_Helper{}

No Hooks.

Returns

array{auto_update: bool, auto_update_manageable: bool}.

Usage

$result = WC_Helper::get_theme_auto_update_data( $stylesheet ): array;
$stylesheet(string) (required)
Directory name of the theme.

Changelog

Since 11.2.0 Introduced.

WC_Helper::get_theme_auto_update_data() code WC 11.2.1

public static function get_theme_auto_update_data( string $stylesheet ): array {
	return self::get_auto_update_data( 'theme', $stylesheet );
}