WC_Helper::get_theme_auto_update_data
Auto-update state of an installed theme, following the same rules as WordPress core's Themes screen.
Метод класса: WC_Helper{}
Хуков нет.
Возвращает
array{auto_update: bool, auto_update_manageable: bool}.
Использование
$result = WC_Helper::get_theme_auto_update_data( $stylesheet ): array;
- $stylesheet(строка) (обязательный)
- Directory name of the theme.
Список изменений
| С версии 11.2.0 | Введена. |
Код WC_Helper::get_theme_auto_update_data() WC Helper::get theme auto update data WC 11.3.0
public static function get_theme_auto_update_data( string $stylesheet ): array {
return self::get_auto_update_data( 'theme', $stylesheet );
}