'human', 'name' => '', 'confidence' => 'browser', 'detail' => 'Placed from the WordPress admin.', ); } $api = AgentStamp_Classifier::is_api_channel( $via ); if ( ! $api && ! in_array( $via, array( 'checkout', 'store-api' ), true ) ) { return null; } $classifier = new AgentStamp_Classifier( new AgentStamp_Signature( new AgentStamp_Directory(), new AgentStamp_Wp_Nonces() ) ); $result = $classifier->classify( new AgentStamp_Request( 'POST', '', (string) $user_agent, array() ), (int) $now ); if ( $api ) { $result = AgentStamp_Classifier::for_channel( $result, (string) $user_agent, $via ); } $result['detail'] .= self::NOTE; return $result; } }