WC_Install::enable_analytics_scheduled_import
Set scheduled import mode as the default for new installations.
Uses add_option() which only sets the option if it doesn't already exist. This ensures existing installations are not affected.
Метод класса: WC_Install{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
$result = WC_Install::enable_analytics_scheduled_import(): void;
Список изменений
| С версии 10.5.0 | Введена. |
Код WC_Install::enable_analytics_scheduled_import() WC Install::enable analytics scheduled import WC 11.2.2
public static function enable_analytics_scheduled_import(): void {
// add_option only sets if option doesn't exist, returns false if it already exists.
add_option( 'woocommerce_analytics_scheduled_import', 'yes' );
}