WordPress at Your Fingertips
function is not described

WC_Tracks_Event::scrutinize_event_names() public WC 1.0

Check event names

{} It's a method of the class: WC_Tracks_Event{}

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Tracks_Event::scrutinize_event_names( $event );
$event(object) (required)
An event object.

Code of WC_Tracks_Event::scrutinize_event_names() WC 5.8.0

public static function scrutinize_event_names( $event ) {
	if ( ! self::event_name_is_valid( $event->_en ) ) {
		return;
	}

	$allowed_key_names = array(
		'anonId',
		'Browser_Type',
	);

	foreach ( array_keys( (array) $event ) as $key ) {
		if ( in_array( $key, $allowed_key_names, true ) ) {
			continue;
		}
		if ( ! self::prop_name_is_valid( $key ) ) {
			return;
		}
	}
}