Automattic\WooCommerce\Internal\Logging
RemoteLogger::is_variant_assignment_allowed()
Check if the store is allowed to log based on the variant assignment percentage.
Метод класса: RemoteLogger{}
Хуков нет.
Возвращает
true|false
.
Использование
// private - только в коде основоного (родительского) класса $result = $this->is_variant_assignment_allowed();
Код RemoteLogger::is_variant_assignment_allowed() RemoteLogger::is variant assignment allowed WC 9.3.3
private function is_variant_assignment_allowed() { $assignment = get_option( 'woocommerce_remote_variant_assignment', 0 ); return ( $assignment <= 12 ); // Considering 10% of the 0-120 range. }