Automattic\WooCommerce\Internal\Logging
RemoteLogger::is_variant_assignment_allowed()
Check if the store is allowed to log based on the variant assignment percentage.
Method of the class: RemoteLogger{}
No Hooks.
Return
true|false
.
Usage
// private - for code of main (parent) class only $result = $this->is_variant_assignment_allowed();
RemoteLogger::is_variant_assignment_allowed() RemoteLogger::is variant assignment allowed code 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. }